GMATH

Numerical Analysis

The function plotter lets you to evaluate and Plot continious functions  with parameters. 

 

The purpose of the function evaluator is to perform some arithmetic operations. To this end, the following arithmetic operatores are used to combine constants and variables.

Level 1    ^     Exponentiation

Level 2    *     Multiplication      /    Division

Level 3    +     Addition             -    Subtraction

Evaluation of Arithmetic Expression:

Rules:

To give a unique meaning to each arithmetic expression, it is necessary to establish two rules governing the evaluation of an arithmetic expression. The first is that preference is given to exponentiation (i.e., if the exponential operator appears in an expression, it is evaluated first--in other words, it ison the first or highest level of preference), then to either multiplication or division, and finally to addition or subscraction.

The second rule states that all arithmetic expression should be evaluated from the left to the right.

The third rule is there must be the same number of right and left parenthesis.


It includes the following built in functions and operators.


Supported operators, constants and functions in this expression evaluator library

Supported Operators

Operator

Description

+

Additive operator / Unary plus / Concatenate string / Datetime addition

&

Concatenate string

Subtraction operator / Unary minus / Datetime subtraction

*

Multiplication operator, can be omitted in front of an open bracket

/

Division operator

%

Remainder operator (Modulo)

^

Power operator

Supported conditional statements

Conditional statement

Description

IF(logical_condition, value_if_true, value_if_false)

Example:
IF(2>1,"Pass","Fail")

SWITCH(expression, val1,result1, [val2,result2], …, [default])

Example:
SWITCH(3+2,5,"Apple",7,"Mango",3,"Good","N/A")

Supported logical and math functions

Function*

Description

AND(logical1, [logical2], …)

Determine if all conditions are TRUE

OR(logical1, [logical2], …)

Determine if any conditions in a test are TRUE

NOT(logical)

To confirm one value is not equal to another

XOR(logical1, [logical2], …)

Exclusive OR function

SUM(number1, [number2],…)

Return sum of numbers supplied

AVERAGE(number1, [number2],…)

Return average of numbers supplied

MIN(number1, [number2],…)

Return the smallest value from the numbers supplied

MAX(number1, [number2],…)

Return the biggest value from the numbers supplied

MOD(number, divisor)

Get remainder of two given numbers after division operator.

ROUND(number, num_digits)

Returns the rounded approximation of given number using half-even rounding mode
( you can change to another rounding mode)

FLOOR(number, significance)

Rounds a given number towards zero to the nearest multiple of a specified significance

CEILING(number, significance)

Rounds a given number away from zero, to the nearest multiple of a given number

POWER(number, power)

Returns the result of a number raised to a given power

RAND()

Produces a random number between 0 and 1

SIN(number)

Returns the trigonometric sine of the angle given in radians

SINH(number)

Returns the hyperbolic sine of a number

ASIN(number)

Returns the arc sine of an angle, in the range of -pi/2 through pi/2

COS(number)

Returns the trigonometric cos of the angle given in radians

COSH(number)

Returns the hyperbolic cos of a number

ACOS(number)

Returns the arc cosine of an angle, in the range of 0.0 through pi

TAN(number)

Returns the tangent of the angle given in radians

TANH(number)

Returns the hyperbolic tangent of a number

ATAN(number)

Returns the arc tangent of an angle given in radians

ATAN2(x_number, y_number)

Returns the arctangent from x- and y-coordinates

COT(number)

Returns the cotangent of an angle given in radians.

COTH(number)

Returns the hyperbolic cotangent of a number

SQRT(number)

Returns the correctly rounded positive square root of given number

LN(number)

Returns the natural logarithm (base e) of given number

LOG10(number)

Returns the logarithm (base 10) of given number

EXP(number)

Returns e raised to the power of given number

ABS(number)

Returns the absolute value of given number

FACT(number)

Returns the factorial of a given number

SEC(number)

Returns the secant of an angle given in radians

CSC(number)

Returns the cosecant of an angle given in radians

PI()

Return value of Pi

RADIANS(degrees)

Convert degrees to radians

DEGREES(radians)

Convert radians to degrees

INT(number)

Returns the Integer value of given number

Supported Constants

Constant

Description

e

The value of e

PI

The value of PI

TRUE

The boolean true value

FALSE

The boolean false value

NULL

The null value

Supported