Basic info

Natural Calculator supports user-defined variables and functions. Thanks to this, the user is not limited by built-in facilities, and there is a possibility to expand them. Any user expression (variable, function, or unit) must be declared before its first use in an expression.

Include files have defined constants that can be used in calculations.

There is a special symbol (hotkey ":") for variables and functions declaration.

Variables are declared as expressions without arguments:

Functions have arguments:

Example:

The variable x is declared. The expression "2 x" и "3.56 sin ( )" means multiplying the coefficient by the variable and the function. Variables and functions in the expression can be typed separately from the number with a space. Such an expression, as a rule, means multiplying the number by the variable or function.

Example:

Enter: "x:", "2.5", "[Enter]f(m):", "m^2". Result:

The variable x is declared with the value 2.5 and function f with one argument m with its square value.

When the variable or function is redeclared, its value is recalculated. When the variable is used in the expression, its nearest previous value is used.

Example:

Variable redeclaring:

Function redeclaring:

Functions can have an unlimited number of arguments that are separated by commas.

Example:

Declaring a function with three arguments:

Functions can be redefined for other numbers of arguments.

Example:

Function overloading for one argument: