Getting aquainted with OpenCalcs
Our equation editor gives a live pretty-print preview as you type. It also supports syntax highlighting, bracket matching, and function auto-completion. To re-order equations simply drag them. No tedious point-and-click interface here.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Our calculator-like syntax can be entered quickly with just your keyboard. Parentheses may be used to group operations. Operator precedence is: parentheses, exponents, multiplication & division, addition & subtraction.
OpenCalcs supports the four basic mathematical operations: Addition, Subtraction, Multiplication, Division.
OpenCalcs supports various common (and less common) mathematical constants; simply include one in an equation to reference its precise value.
OpenCalcs provides extensive support for mathematical functions. Powers, logarithms, trigonometric, hyperbolic, factorials & gamma functions to name a few.
OpenCalcs provides extensive support for mathematical functions. Powers, logarithms, trigonometric, hyperbolic, factorials & gamma functions to name a few.
OpenCalcs provides extensive support for mathematical functions. Powers, logarithms, trigonometric, hyperbolic, factorials & gamma functions to name a few.
OpenCalcs provides extensive support for mathematical functions. Powers, logarithms, trigonometric, hyperbolic, factorials & gamma functions to name a few.
Greek letters may be used in variables and equations; their names are automatically converted to the corresponding symbol.
OpenCalcs provides support Python language constructs including advanced slicing, if-elif-else conditionals, for loops and while loops, try-except-finally blocks, function definitions, augmented assignments, if-expressions, and list comprehension.
Our equation editor gives a live pretty-print preview as you type. It also supports syntax highlighting, bracket matching, and function auto-completion. To re-order equations simply drag them. No tedious point-and-click interface here.
Parentheses may be used to group operations. Operator precedence is: parentheses, exponents, multiplication & division, addition & subtraction. Greek letters may be used in variables and equations; their names are automatically converted to the corresponding symbol.
Parentheses may be used to group operations. Operator precedence is: parentheses, exponents, multiplication & division, addition & subtraction. Greek letters may be used in variables and equations; their names are automatically converted to the corresponding symbol.
Parentheses may be used to group operations. Operator precedence is: parentheses, exponents, multiplication & division, addition & subtraction. Greek letters may be used in variables and equations; their names are automatically converted to the corresponding symbol.
OpenCalcs supports the four basic mathematical operations: Addition, Subtraction, Multiplication, Division.
| Operator | Example | Description |
|---|---|---|
+ |
1+1 = 2 |
addition |
- |
3-2 = 1 |
subtraction |
* |
5*2 = 10 |
multiplication |
/ |
10/2 = 5 |
division |
OpenCalcs supports various common (and less common) mathematical constants. Simply include a constant by name in an equation to reference its precise value.
For example, the equation for the circumference of a circle would be entered as: pi*D, where D is diameter and pi is the constant.
| Constant | Value | Description |
|---|---|---|
pi |
3.14159~ | `pi`, the area of a unit circle |
degree |
0.0174533~ | `(pi / 180)`, one degree of angle |
e |
2.71828~ | base of the natural logarithm |
phi |
1.61803~ | the golden ratio |
euler |
0.577216~ | Euler's constant |
catalan |
0.915966~ | Catalan's constant |
apery |
1.20206~ | Apery's constant |
khinchin |
2.68545~ | Khinchin's constant |
glaisher |
1.28243~ | Glaisher's constant |
mertens |
0.261497~ | Mertens' constant |
twinprime |
0.660162~ | Twin prime constant |
Parentheses may be used to group operations. Operator precedence is: parentheses, exponents, multiplication & division, addition & subtraction. Greek letters may be used in variables and equations; their names are automatically converted to the corresponding symbol.
| Function | Description |
|---|---|
cos(x) |
Cosine of argument `x` in radians |
sin(x) |
Sine of argument `x` in radians |
tan(x) |
Tangent of argument `x` in radians |
sec(x) |
Secant of argument `x` in radians |
csc(x) |
Cosecant of argument `x` in radians |
cot(x) |
Cotangent of argument `x` in radians |
| Function | Description |
|---|---|
cosd(x) |
Cosine of argument `x` in degrees |
sind(x) |
Sine of argument `x` in degrees |
tand(x) |
Tangent of argument `x` in degrees |
secd(x) |
Secant of argument `x` in degrees |
cscd(x) |
Cosecant of argument `x` in degrees |
cotd(x) |
Cotangent of argument `x` in degrees |
| Function | Description |
|---|---|
cospi(x) |
Computes `cos(pi x)` more accurately than cos(pi*x) with argument `x` in radians |
sinpi(x) |
Computes `sin(pi x)` more accurately than sin(pi*x) with argument `x` in radians |
| Function | Description |
|---|---|
acos(x) |
Return the inverse cosine of `x` in radians |
asin(x) |
Return the inverse sine of `x` in radians |
atan(x) |
Return the inverse tangent of `x` in radians |
atan2(y,x) |
Return the four-quadrant inverse tangent in radians |
asec(x) |
Return the inverse secant of `x` in radians |
acsc(x) |
Return the inverse cosecant of `x` in radians |
acot(x) |
Return the inverse cotangent of `x` in radians |
| Function | Description |
|---|---|
acosd(x) |
Return the inverse cosine of `x` in degrees |
asind(x) |
Return the inverse sine of `x` in degrees |
atand(x) |
Return the inverse tangent of `x` in degrees |
atan2d(y,x) |
Return the four-quadrant inverse tangent in degrees |
asecd(x) |
Return the inverse secant of `x` in degrees |
acscd(x) |
Return the inverse cosecant of `x` in degrees |
acotd(x) |
Return the inverse cotangent of `x` in degrees |
| Function | Description |
|---|---|
cosh(x) |
Hyperbolic cosine of argument `x` in radians |
sinh(x) |
Hyperbolic sine of argument `x` in radians |
tanh(x) |
Hyperbolic tangent of argument `x` in radians |
sech(x) |
Hyperbolic secant of argument `x` in radians |
csch(x) |
Hyperbolic cosecant of argument `x` in radians |
coth(x) |
Hyperbolic cotangent of argument `x` in radians |
| Function | Description |
|---|---|
coshd(x) |
Hyperbolic cosine of argument `x` in degrees |
sinhd(x) |
Hyperbolic sine of argument `x` in degrees |
tanhd(x) |
Hyperbolic tangent of argument `x` in degrees |
sechd(x) |
Hyperbolic secant of argument `x` in degrees |
cschd(x) |
Hyperbolic cosecant of argument `x` in degrees |
cothd(x) |
Hyperbolic cotangent of argument `x` in degrees |
| Function | Description |
|---|---|
acosh(x) |
Return the inverse hyperbolic cosine of `x` in radians |
asinh(x) |
Return the inverse hyperbolic sine of `x` in radians |
atanh(x) |
Return the inverse hyperbolic tangent of `x` in radians |
asech(x) |
Return the inverse hyperbolic secant of `x` in radians |
acsch(x) |
Return the inverse hyperbolic cosecant of `x` in radians |
acoth(x) |
Return the inverse hyperbolic cotangent of `x` in radians |
| Function | Description |
|---|---|
acoshd(x) |
Return the inverse hyperbolic cosine of `x` in degrees |
asinhd(x) |
Return the inverse hyperbolic sine of `x` in degrees |
atanhd(x) |
Return the inverse hyperbolic tangent of `x` in degrees |
asechd(x) |
Return the inverse hyperbolic secant of `x` in degrees |
acschd(x) |
Return the inverse hyperbolic cosecant of `x` in degrees |
acothd(x) |
Return the inverse hyperbolic cotangent of `x` in degrees |
| Function | Description |
|---|---|
degrees(x) |
Converts the radian angle `x` to a degree angle |
radians(x) |
Converts the degree angle `x` to radians |
Parentheses may be used to group operations. Operator precedence is: parentheses, exponents, multiplication & division, addition & subtraction. Greek letters may be used in variables and equations; their names are automatically converted to the corresponding symbol.
| Function | Description |
|---|---|
sqrt(x) |
Returns the square root of `x` |
hypot(x,y) |
Returns the Euclidean norm, equal to `sqrt(x^2 + y^2)` |
cbrt(x) |
Returns the cube root of `x` |
root(z,n,k=0) |
Computes an `n`-th root of `z` in radians; A specific root may be selected using the optional index k. To obtain all roots with a simple expression, use root(z,n,k) for k in range(n) |
| Function | Description |
|---|---|
exp(x) |
Computes the exponential function `e^x` |
power(x,y) |
Returns x raised to the power y: `x^y`; however, the recommended notation is x^y which uses the same function. The exponent `y` is limited to a maximum value of 10000 |
expj(x) |
Convenience function for computing `e^(i*x)` |
expjpi(x) |
Convenience function for computing `e^(i*pi*x)` |
expm1(x) |
Computes `e^x−1`, accurately for small `x` |
powm1(x,y) |
Computes `x^y−1`, accurately when `x^y` is very close to 1 |
| Function | Description |
|---|---|
log(x,b=None) |
Computes the base-`b` logarithm of `x`, `log_b(x)` |
ln(x) |
Computes the natural (base `e`) logarithm |
log10(x) |
Computes the base-10 logarithm of `x`, `log_10(x)` |
log1p(x) |
Computes `log(1+x)` accurately for small `x` |
Parentheses may be used to group operations. Operator precedence is: parentheses, exponents, multiplication & division, addition & subtraction. Greek letters may be used in variables and equations; their names are automatically converted to the corresponding symbol.
| Function | Description |
|---|---|
abs(x) |
Returns the absolute value of `x` |
agm(x,b=1) |
Returns the arithmetic-geometric mean of `a` and `b` |
ceil(x) |
Returns the smallest integer greater than or equal to x. |
copysign(x, y) |
Returns x with the sign of y |
factorial(x) |
Returns the factorial of x |
floor(x) |
Returns the largest integer less than or equal to x |
fmod(x, y) |
Returns the remainder when x is divided by y |
frexp(x) |
Returns the mantissa and exponent of x as the pair (m, e) |
isinf(x) |
Returns True if x is a positive or negative infinity |
isnan(x) |
Returns True if x is a NaN |
ldexp(x, i) |
Returns x * (2**i) |
max(arg1, arg2, *args) |
Returns the largest element in an iterable or largest of two or more parameters |
min(arg1, arg2, *args) |
Returns the smallest element in an iterable or largest of two or more parameters |
modf(x) |
Returns the fractional and integer parts of x |
trunc(x) |
Returns the truncated integer value of x |
erf(x) |
Returns the error function at x |
erfc(x) |
Returns the complementary error function at x |
gamma(x) |
Returns the Gamma function at x |
loggamma(x) |
Returns the natural logarithm of the absolute value of the Gamma function at x |
Greek letters may be used in variables and equations; their names are automatically converted to the corresponding symbol.
| Name | Symbol | Name | Symbol |
|---|---|---|---|
alpha |
`alpha` | ||
beta |
`beta` | ||
gamma |
`gamma` | Gamma |
`Gamma` |
delta |
`delta` | Delta |
`Delta` |
epsilon |
`epsilon` | ||
varepsilon |
`varepsilon` | ||
zeta |
`zeta` | ||
eta |
`eta` | ||
theta |
`theta` | Theta |
`Theta` |
vartheta |
`vartheta` | ||
iota |
`iota` | ||
kappa |
`kappa` | ||
lambda |
`lambda` | Lambda |
`Lambda` |
mu |
`mu` | ||
nu |
`nu` | ||
xi |
`xi` | Xi |
`Xi` |
pi |
`pi` | Pi |
`Pi` |
rho |
`rho` | ||
sigma |
`sigma` | Sigma |
`Sigma` |
tau |
`tau` | ||
upsilon |
`upsilon` | ||
phi |
`phi` | Phi |
`Phi` |
varphi |
`varphi` | ||
chi |
`chi` | ||
psi |
`psi` | Psi |
`Psi` |
omega |
`omega` | Omega |
`Omega` |
| Notation | Description | Symbol |
|---|---|---|
2/3 |
fraction, division | `2/3` |
2*3 |
multiplication | `2*3` |
2^3 |
exponent, superscript | `2^3` |
a_1 |
subscript | `a_1` |
abs(x) |
absolute value | `abs(x)` |
floor(x) |
floor | `floor(x)` |
ceil(x) |
ceil | `ceil(x)` |
< |
less than | `<` |
> |
greater than | `>` |
= |
equal | `=` |
!= |
not equal | `!=` |
<= |
less than or equal | `<=` |
>= |
greater than or equal | `>=` |
OpenCalcs supports many Python language constructs.
| Construct | Description |
|---|---|
a[::-1], array[-3:, :, ::2] |
advanced slicing |
if |
if-elif-else conditionals |
for x in range(5): |
for loops, with else |
try-except-finally |
try-except-finally blocks |
def func(x) |
function definitions |
try-except-finally |
try-except-finally blocks |
x += 1 |
augmented assignments |
x = a if TEST else b |
if-expressions |
out = [sqrt(i) for i in values] |
list comprehension |