-
var
: For variable declaration -
func
: To define a function -
return
: To return a value from a function -
print
: To print a value to the console -
for
: For loop
-
+
: Addition -
-
: Subtraction -
*
: Multiplication -
/
: Division -
^
: Power
-
sum(a, b)
: Addition -
difference(a, b)
: Subtraction -
product(a, b)
: Multiplication -
quotient(a, b)
: Division -
square(a)
: Square of a number -
sqrt(a)
: Square root -
sin(a)
: Sine function -
cos(a)
: Cosine function -
tan(a)
: Tangent function -
log(a)
: Natural logarithm -
exp(a)
: Exponential function -
floor(a)
: Floor function -
ceil(a)
: Ceiling function -
round(a)
: Round to the nearest integer -
abs(a)
: Absolute value -
max(a, b)
: Maximum value -
min(a, b)
: Minimum value -
and(a, b)
: Logical AND -
or(a, b)
: Logical OR -
not(a)
: Logical NOT
-
pi
: 3.141592653589793 -
e
: 2.718281828459045 -
g
: 9.81 (acceleration due to gravity)
- Use
//
for single line comments