Converting qbasic to Euphoria?
- Posted by Ed Davis <ed_davis2 at yahoo.com> Jul 28, 2004
- 625 views
Can the following qbasic code be easily converted to Euphoria? Note that I am not looking for an exact translation. My goal is to be able to use Euphoria to graph some simple algebraic equations. Using DOS (as opposed to Linux or Windows) is ok too. Thanks for any help! DIM a, b, c, x AS DOUBLE SCREEN (12) WINDOW (-8, 6)-(8, -6) LINE (-8, 0)-(8, 0) 'X axis LINE (0, 6)-(0, -6) 'Y axis FOR x = -8 TO 8 STEP .025 a = x ^ 2 b = SIN(x) c = COS(x) PSET (x, a) PSET (x, b) PSET (x, c) NEXT x