-
Notifications
You must be signed in to change notification settings - Fork 80
Syntax
These syntax guidelines are to be followed-
-
Functions: Every function calls must use parentheses for arguments such that a function call will be similar to -> function(arguments)
Valid syntax:
simplify(sin(x) = Log(x) + 2), addition(cos(2) + sin(2))
Invalid syntax:simplify(sinx = Logx + 2), addition(cos2 + sin3)
-
Each open parenthesis must have a corresponding close parenthesis and for a new pair of parenthesis, close parenthesis must never be encountered before the open parenthesis.
Valid syntax:
simplify(x^2 + 2*(x+3) + 5 = (x + 4))
Invalid syntax:simplify(x^2 + 2*(x+3 + 5 = (x + 4))
Valid syntax:addition(2 + 3 + 4/(2+2))
Invalid syntax:addition(2 + 3) + 4/)2+2(
-
Always use operators for operation between two expression
Valid syntax:
simplify(4 = (x+y)*(x-y))
Invalid syntax:simplify(4 = (x+y)(x-y))
-
Decimal point must be preceded by an integer
Valid syntax:
simplify(0.2*2 + 0.5)
Invalid syntax:simplify(.2*2 + 0.5), simplify(0.2*2 + .5) or simplify(.2*2 + .5)