Introduction
Calcularius lets you evaluate mathematical expressions in a very easy way: just by typing them. You can use constants, suffixes, brackets and a lot of functions like in the following examples:
- 2*(4+3^2)
- tan(pi/4)
- 2.15M * 2n
- sin(asin(2+5))
- sqrt(7 + cos(pi/4) * sqrt(8))
- cosh(1.3)^2-sinh(1.3)^2
- {10+[30/1.5*sqrt(10-1)]}
- exp(ln(3)+ln(5))
- 2(3+4^3)tan(pi/4)
What follows is a description of the elements at your disposal.
Go calculate
Operators
Operators are the well known mathematical relations reported in the following table:
| Operator | Description | Example |
| + | Addition | 3 + 1.5 gives 4.5 |
| - | Subtraction | 7.2 - 2e-1 gives 7 |
| * | Multiplication | 1.5 * 12 gives 18 |
| / | Division | 4 / 2 gives 2 |
| % | Remainder of a division | 8 % 3 gives 2 |
| ^ | Power | 2 ^ 3 gives 8 |
Go calculate
Constants
Constants are strings you can use in place of numbers. So you can write pi/4 instead of 3.14159265358979/4.
| Costant | Value |
| e | 2.718281828459 |
| pi | 3.14159265358979 |
| i | 0 + i |
| j | 0 + i |
Go calculate
Suffixes
By using suffixes you can enter big as well as small numbers in a very quick way. For example the number 0.0000000062 can be written in the following ways:
- 0.0000000062 (of course)
- 6.2*10^-9
- 6.2e-9
or, more easily, just using the n (nano) suffix
| Suffix name | Suffix description | Multiplier factor |
| Y | yotta | 1024 |
| Z | zeta | 1021 |
| E | exa | 1018 |
| P | peta | 1015 |
| T | tera | 1012 |
| G | giga | 109 |
| M | mega | 106 |
| K | kilo | 103 |
| m | milli | 10-3 |
| u | micro | 10-6 |
| n | nano | 10-9 |
| p | pico | 10-12 |
| f | femto | 10-15 |
| a | atto | 10-18 |
| z | zepto | 10-21 |
| y | yocto | 10-24 |
| i | imaginary part | 0 + i |
| j | imaginary part | 0 + i |
Go calculate
Functions
Almost 50 functions are available to fit your needs. They act on one or more parameters by transforming them as the following table describes.
Even though very simple examples are reported, please remember that Calcularius always works in a complex domain. So, for example, asin(2) is an allowed expression that gives 1.5707963 - 1.3169579i.
| Function | Description | Input | Output |
| sin(z) | sine of z | sin(pi/2) | 1 |
| cos(z) | cosine of z | cos(pi) | -1 |
| tan(z) | tangent of z | tan(pi/4) | 1 |
| cot(z) | cotangent of z | cot(pi/4) | 1 |
| sec(z) | secant of z | sec(pi/4)^2 | 2 |
| csc(z) | cosecant of z | csc(pi/2) | 1 |
| sinh(z) | hyperbolic sine of z | sinh(1) | 1.1752012 |
| cosh(z) | hyperbolic cosine of z | cosh(0) | 1 |
| tanh(z) | hyperbolic tangent of z | tanh(1) | 0.76159416 |
| coth(z) | hyperbolic cotangent of z | coth(1) | 1.3130353 |
| sech(z) | hyperbolic secant of z | sech(1) | 0.64805427 |
| csch(z) | hyperbolic cosecant of z | csch(1) | 0.85091813 |
| asin(z) | arcsine of z | asin(1)/pi | 0.5 |
| acos(z) | arccosine of z | acos(0)/pi | 0.5 |
| atan(z) | arctangent of z | atan(1)/pi | 0.25 |
| acot(z) | arccotangent of z | acot(1)/pi | 0.25 |
| asec(z) | arcsecant of z | asec(-1)/pi | 1 |
| acsc(z) | arccosecant of z | acsc(1)/pi | 0.5 |
| asinh(z) | inverse hyperbolic sine of z | asinh(1) | 0.88137359 |
| acosh(z) | inverse hyperbolic cosine of z | acosh(1) | 0 |
| atanh(z) | inverse hyperbolic tangent of z | atanh(1) | 0 |
| acoth(z) | inverse hyperbolic cotangent of z | acoth(1) | 0 |
| asech(z) | inverse hyperbolic secant of z | asech(1) | 0 |
| acsch(z) | inverse hyperbolic cosecant of z | acsch(1) | 0.88137359 |
| inv(z) | inverse (1/z) of z | inv(2) | 0.5 |
| log(z), ln(z) | natural logarithm of z | log(2) | 0.69314718 |
| logn(z, y) | logarithm of z to the base y | logn(81, 3) | 4 |
| log2(z) | logarithm of z to the base 2 | log2(8) | 3 |
| log10(z) | logarithm of z to the base 10 | log10(100) | 2 |
| exp(z) | exponential function | exp(2) | 7.3890561 |
| sqrt(z) | square root of z | sqrt(9) | 3 |
| conj(z) | Complex conjugate of z | conj(1+i) | 1-i |
| real(z) | Real part of z | real(1+3j) | 1 |
| imag(z) | Imaginary part of z | imag(1+3j) | 3 |
| abs(z) | The absolute value of z | abs(-3) | 3 |
| norm(z) | The norm of z | norm(-3+4i) | 5 |
| angle(z) | The angle of the vector represented by the complex number | angle(1-i)/pi | -0.25 |
| pow(z,y) | yth power of z It's the same as the ^ operator | pow(2,3) | 8 |
| pow2(z) | The zth power of 2 | pow2(3) | 8 |
| int(z) | The integer part of z | int(1.23) | 1 |
| round(z) | The integer nearest to z | round(-1.7) | -2 |
| factorial(z) | The factorial of z z must be an integer | factorial(4) | 24 |
| step(x) | Returns 1 if x is greater or equal to 0, 0 otherwise x must be real | step(1.2) | 1 |
| sinc(z) | Unnormalized cardinal sine (sin(z)/z) | sinc(0) | 1 |
| root(z1, z2) | z2th root of z1 | root(9,2) | 3 |
| evenstep(z) | Periodic function with period of 2. evenstep = 1 for x [2n,2n+1), where n is a natural number evenstep = 0 otherwise
| evenstep(0.2) evenstep(-0.2) | 1 0 |
| oddstep(z) | Periodic function with period of 2. oddstep = 1 for x [2n-1,2n), where n is a natural number oddstep = 0 otherwise
| oddstep(0.2) oddstep(-0.2) | 0 1 |
Go calculate