Reference

Mathematical Functions:



NOTE: Use radians on all trigonometrical functions

Degrees to Radians

deg
=
0
rad

All Functions:


point: point x y This will add a point on the graph on the given coords
draw_function: draw_function pow(x,2) This will draw a function with the expression y = x^2
set_graph_res: set_graph_res 2 This will determine how many points will be calculated per unit. The more you put, the better quality and the lower performance on the graph.

Syntax

Variable Definition


var_name=1



Print variables/text


print var_name


print YourCustomText



Using the Math Functions


a=cos(PI*2)


Sample Simple Scripts

Print simple mathematical operations

a=1
b=2
c=3
d=4

addition=a+b+c+d

print addition

substraction=a-b-c-d

print substraction

multiplication=a*b*c*d

print multiplication

division=a/b/c/d

print division

Load Script



Print advanced mathematical operations

a=cos(0)
b=sin(PI)
c=atan(1)

print Tangent(1)

print c

print Sine(PI)

print b

print Cosine(0)

print a

Load Script



Draw point on a graph

a=3
b=4
c=5

point a b

point b c

point c a

point 6 6

Load Script



Draw a function on a graph

draw_function pow(2x,2)+3
print 2x^2+3

Load Script



Change the resolution and draw the function again

set_graph_res 5
draw_function pow(2x,2)+3
print 2x^2+3

Load Script

Editor
Display