08-10-2003, 10:09 AM
When i say 3 lines of code, i mean "everything" you can do in a line (ie use of colons), but other things like "chain" don't count (like the use of external library).
"All" your program do must be done in tree lines.
The following plot the "tan" function:
Sureley this isn't much usefull, but may be (if you are studing maths).
"All" your program do must be done in tree lines.
The following plot the "tan" function:
Code:
SCREEN 12: WINDOW (-3.14, 1.5)-(3.14, -1.5)
FOR x = -3.14 TO 3.14 STEP .01: PSET (x, SIN(x) / COS(x)): NEXT x
LINE (-3.14, 0)-(3.14, 0): LINE (0, 1.5)-(0, -1.5)
Sureley this isn't much usefull, but may be (if you are studing maths).