Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

maths

Subcommands

SubcommandDescriptionSyntax
eReturns Euler's number (2.718281828459045)e()
piReturns the value of pi (3.141592653589793)pi()
sinCalculates the sine of a number in radianssin(<expr>)
cosCalculates the cosine of a number in radianscos(<expr>)
tanCalculates the tangent of a number in radianstan(<expr>)
sinhCalculates the hyperbolic sine of a number in radianssinh(<expr>)
coshCalculates the hyperbolic cosine of a number in radianscosh(<expr>)
tanhCalculates the hyperbolic tangent of a number in radianstanh(<expr>)
asinCalculates the arcsine of a number in radiansasin(<expr>)
acosCalculates the arccosine of a number in radiansacos(<expr>)
atanCalculates the arctangent of a number in radiansatan(<expr>)
asinhCalculates the inverse hyperbolic sine of a number in radiansasinh(<expr>)
acoshCalculates the inverse hyperbolic cosine of a number in radiansacosh(<expr>)
atanhCalculates the inverse hyperbolic tangent of a number in radiansatanh(<expr>)
expCalculates the base e exponential of a number (equivalent to e^x)exp(<expr>)
lnCalculates the natural logarithm (base e) of a numberln(<expr>)
sqrtCalculates the square root of a numbersqrt(<expr>)
absCalculates the absolute value of a numberabs(<expr>)
ceilCalculates the ceiling (next highest integer) of a numberceil(<expr>)
floorCalculates the floor (next lowest integer) of a numberfloor(<expr>)
logCalculates the logarithm of a number in the provided baselog(<expr>, <expr>)
powRaises a number to the power of another numberpow(<expr>, <expr>)
nrtCalculates the nth root of a numbernrt(<expr>, <expr>)
addAdds 2 numbers togetheradd(<expr>, <expr>)
subSubtracts one number from anothersub(<expr>, <expr>)
mulMultiplies two numbersmul(<expr>, <expr>)
divDivides one number by anotherdiv(<expr>, <expr>)

Examples

e

| eval e=e()

pi

| eval pi=pi()

sin

| eval sin=sin(<expr>)

cos

| eval cos=cos(<expr>)

tan

| eval tan=tan(<expr>)

sinh

| eval sinh=sinh(<expr>)

cosh

| eval cosh=cosh(<expr>)

tanh

| eval tanh=tanh(<expr>)

asin

| eval asin=asin(<expr>)

acos

| eval acos=acos(<expr>)

atan

| eval atan=atan(<expr>)

asinh

| eval asinh=asinh(<expr>)

acosh

| eval acosh=acosh(<expr>)

atanh

| eval atanh=atanh(<expr>)

exp

| eval exp=exp(<expr>)

ln

| eval ln=ln(<expr>)

sqrt

| eval sqrt=sqrt(<expr>)

abs

| eval abs=abs(<expr>)

ceil

| eval ceil=ceil(<expr>)

floor

| eval floor=floor(<expr>)

log

| eval result=log(<expr>, <base>)

pow

| eval result=pow(<expr>, <exponent>)

nrt

| eval result=nrt(<expr>, <degree>)

add

| eval result=add(<expr>, <expr>)

sub

| eval result=sub(<expr>, <expr>)

mul

| eval result=mul(<expr>, <expr>)

div

| eval result=div(<expr>, <expr>)