Converting qbasic to Euphoria?

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu