The following is a list of all variables, constants, operators and functions supported by the program.
The list of operators shows the operators with the highest precedence first.
The precedence of operators can be changed through the use of brackets.
(), {} and [] may all be used alike.
Notice that expressions in Graph are case insensitive, i.e. there are no difference between upper and lower case characters.
The only exception is e
as Euler's constant and E as the exponent in a number in scientific notation.
Konstant | Beskrivning |
---|---|
x | The independent variable used in standard functions. |
t | The independent variable called parameter for parametric functions and polar angle for polar functions. |
e | Euler's constant. In this program defined as e=2.718281828459045235360287 |
pi | The constant π, which in this program is defined as pi=3.141592653589793238462643 |
undef | Always returns an error. Used to indicate that part of a function is undefined. |
i | The imaginary unit. Defined as i2 = -1. Only useful when working with complex numbers. |
inf | The constant for infinity. Only useful as argument to the integrate function. |
rand | Evaluates to a random number between 0 and 1. |
Operator | Beskrivning |
---|---|
Exponentiation (^) | Raise to the power of an exponent. Example: f(x)=2^x |
Negation (-) | The negative value of a factor. Example: f(x)=-x |
Logical NOT (not) | not a evaluates to 1 if a is zero, and evaluates to 0 otherwise. |
Multiplication (*) | Multiplies two factors. Example: f(x)=2*x |
Division (/) | Divides two factors. Example: f(x)=2/x |
Addition (+) | Adds two terms. Example: f(x)=2+x |
Subtraction (-) | Subtracts two terms. Example: f(x)=2-x |
Greater than (>) | Indicates if an expression is greater than another expression. |
Greater than or equal to (>=) | Indicates if an expression is greater or equal to another expression. |
Less than (<) | Indicates if an expression is less than another expression. |
Less than or equal to (<=) | Indicates if an expression is less or equal to another expression. |
Equal (=) | Indicates if two expressions evaluate to the exact same value. |
Not equal (<>) | Indicates if two expressions does not evaluate to the exact same value. |
Logical AND (and) |
a and b evaluates to 1 if both a and b
are non-zero, and evaluates to 0 otherwise.
|
Logical OR (or) |
a or b evaluates to 1 if either a or b
are non-zero, and evaluates to 0 otherwise.
|
Logical XOR (xor) |
a xor b evaluates to 1 if either a or b ,
but not both, are non-zero, and evaluates to 0 otherwise.
|
Funktion | Beskrivning |
---|---|
Trigonometrisk | |
sin | Returns the sine of the argument, which may be in radians or degrees. |
cos | Returns the cosine of the argument, which may be in radians or degrees. |
tan | Returns the tangent of the argument, which may be in radians or degrees. |
asin | Returns the inverse sine of the argument. The returned value may be in radians or degrees. |
acos | Returns the inverse cosine of the argument. The returned value may be in radians or degrees. |
atan | Returns the inverse tangent of the argument. The returned value may be in radians or degrees. |
sec | Returns the secant of the argument, which may be in radians or degrees. |
csc | Returns the cosecant of the argument, which may be in radians or degrees. |
cot | Returns the cotangent of the argument, which may be in radians or degrees. |
asec | Returns the inverse secant of the argument. The returned value may be in radians or degrees. |
acsc | Returns the inverse cosecant of the argument. The returned value may be in radians or degrees. |
acot | Returns the inverse cotangent of the argument. The returned value may be in radians or degrees. |
Hyperbolic | |
sinh | Returns the hyperbolic sine of the argument. |
cosh | Returns the hyperbolic cosine of the argument. |
tanh | Returns the hyperbolic tangent of the argument. |
asinh | Returns the inverse hyperbolic sine of the argument. |
acosh | Returns the inverse hyperbolic cosine of the argument. |
atanh | Returns the inverse hyperbolic tangent of the argument. |
csch | Returns the hyperbolic cosecant of the argument. |
sech | Returns the hyperbolic secant of the argument. |
coth | Returns the hyperbolic cotangent of the argument. |
acsch | Returns the inverse hyperbolic cosecant of the argument. |
asech | Returns the inverse hyperbolic secant of the argument. |
acoth | Returns the inverse hyperbolic cotangent of the argument. |
Potens och logaritm | |
sqr | Returns the square of the argument, i.e. the power of two. |
exp | Returns e raised to the power of the argument. |
sqrt | Returns the square root of the argument. |
root | Returns the nth root of the argument. |
ln | Returns the logarithm with base e to the argument. |
log | Returns the logarithm with base 10 to the argument. |
logb | Returns the logarithm with base n to the argument. |
Complex | |
abs | Returns the absolute value of the argument. |
arg | Returns the angle of the argument in radians or degrees. |
conj | Returns the conjugate of the argument. |
re | Returns the real part of the argument. |
im | Returns the imaginary part of the argument. |
Rounding | |
trunc | Returns the integer part of the argument. |
fract | Returns the fractional part of the argument. |
ceil | Rounds the argument up to nearest integer. |
floor | Rounds the argument down to the nearest integer. |
round | Rounds the first argument to the number of decimals given by the second argument. |
Piecewise | |
sign | Returns the sign of the argument: 1 if the argument is greater than 0, and -1 if the argument is less than 0. |
u | Unit step: Returns 1 if the argument is greater than or equal 0, and 0 otherwise. |
min | Returns the smallest of the arguments. |
max | Returns the greatest of the arguments. |
range | Returns the second argument if it is in the range of the first and third argument. |
if | Returns the second argument if the first argument does not evaluate to 0; Else the third argument is returned. |
Special | |
integrate | Returns the numeric integral of the first argument from the second argument to the third argument. |
sum | Returns the sum of the first argument evaluated for each integer in the range from the second to the third argument. |
product | Returns the product of the first argument evaluated for each integer in the range from the second to the third argument. |
fact | Returns the factorial of the argument. |
gamma | Returns the Euler gamma function of the argument. |
beta | Returns the beta function evaluated for the arguments. |
W | Returns the Lambert W-function evaluated for the argument. |
zeta | Returns the Riemann Zeta function evaluated for the argument. |
mod | Returns the remainder of the first argument divided by the second argument. |
dnorm | Returns the normal distribution of the first argument with optional mean value and standard deviation. |