• TOC
  • GigaMess
  • CodeTips
  • Stuff
  • Links
  • Contact

The Face Formula (tm)

((y-3)(y-1)(80(x-5)(x-4)(x-3)^2(x-2)(x-1)+4(-8040+(x-6)x(114509+(x-6)x(33244+2367
(x-6)x)))y-6(-2080+(x-6)x(61833+(x-6)x(18618+1369(x-6)x)))y^2+2(-1020+(x-
6)x(52967+(x-6)x(16497+1246(x-6)x)))y^3-3(-40+(x-6)x(4309+(x-6)x(1384+107(x-
6)x)))y^4+5(x-6)(x-5)(x-1)x(23+3(x-6)x)y^5))/86400<0.5

What does it do and how do I use it?

If the equation above is true, then draw a pixel to corresponding (x, y) location. (y^7 means "y raised to the seventh power")

X values from 0 to 6 and Y values from 0 to 7 draws you a smiling face:

The face produced with face formula