Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shortest useful program
#5
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:

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).
Reply


Messages In This Thread
Shortest useful program - by xhantt - 08-10-2003, 03:02 AM
Shortest useful program - by toonski84 - 08-10-2003, 03:58 AM
Shortest useful program - by Moneo - 08-10-2003, 06:31 AM
Shortest useful program - by toonski84 - 08-10-2003, 08:54 AM
Shortest useful program - by xhantt - 08-10-2003, 10:09 AM
Shortest useful program - by ak00ma - 08-10-2003, 10:30 AM
Shortest useful program - by toonski84 - 08-10-2003, 10:42 AM
Shortest useful program - by xhantt - 08-10-2003, 09:49 PM
Shortest useful program - by ak00ma - 08-10-2003, 10:12 PM
Shortest useful program - by Phydaux - 08-11-2003, 02:08 AM
Shortest useful program - by Moneo - 08-11-2003, 03:22 AM
Shortest useful program - by toonski84 - 08-11-2003, 05:00 AM
Shortest useful program - by oracle - 08-11-2003, 05:10 AM
Shortest useful program - by Moneo - 08-11-2003, 06:25 AM
Shortest useful program - by toonski84 - 08-11-2003, 07:06 AM
Shortest useful program - by xhantt - 08-11-2003, 10:32 PM
Shortest useful program - by Agamemnus - 08-11-2003, 11:41 PM
Shortest useful program - by Moneo - 08-11-2003, 11:46 PM
Shortest useful program - by Moneo - 08-12-2003, 11:22 PM
Shortest useful program - by biostar - 08-16-2003, 01:07 AM
Shortest useful program - by oracle - 08-16-2003, 03:31 AM
Shortest useful program - by Moneo - 08-16-2003, 04:16 AM
Shortest useful program - by oracle - 08-16-2003, 06:45 AM
Shortest useful program - by Moneo - 08-16-2003, 07:46 AM
Shortest useful program - by whitetiger0990 - 08-16-2003, 09:03 AM
Shortest useful program - by Moneo - 08-16-2003, 09:48 AM
Shortest useful program - by ak00ma - 08-16-2003, 12:46 PM
Shortest useful program - by Moneo - 08-16-2003, 11:08 PM
Shortest useful program - by whitetiger0990 - 08-17-2003, 12:53 AM
Shortest useful program - by Moneo - 08-17-2003, 04:29 AM
Shortest useful program - by ak00ma - 08-17-2003, 10:59 AM
Shortest useful program - by oracle - 08-18-2003, 01:41 AM
Shortest useful program - by Moneo - 08-22-2003, 05:24 AM
Shortest useful program - by pr0gger - 08-23-2003, 03:32 AM
Shortest useful program - by whitetiger0990 - 08-23-2003, 03:43 AM
Shortest useful program - by Moneo - 08-23-2003, 04:07 AM
Shortest useful program - by otaku84 - 10-14-2003, 03:40 PM
Shortest useful program - by oracle - 10-15-2003, 12:49 AM
Shortest useful program - by seph - 10-15-2003, 02:49 AM
Shortest useful program - by SCM - 10-15-2003, 07:18 AM
Shortest useful program - by Moneo - 10-15-2003, 09:09 AM
Shortest useful program - by oracle - 10-15-2003, 10:27 AM
Shortest useful program - by Lanzaa - 10-16-2003, 06:25 AM
Shortest useful program - by seph - 10-16-2003, 07:18 AM
Shortest useful program - by oracle - 10-17-2003, 01:45 AM
Shortest useful program - by Dav - 10-17-2003, 04:11 AM
Shortest useful program - by Dav - 10-22-2003, 05:51 AM
Shortest useful program - by seph - 10-22-2003, 07:22 AM
Shortest useful program - by oracle - 10-22-2003, 10:42 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)