Dignitet och logaritm

sqr-funktion

Returns the square of the argument.

Syntax

sqr(z)

Beskrivning

The sqr function calculates the square of z, i.e. z raised to the power of 2. z may be any numeric expression that evaluates to a real number or a complex number.

exp-funktion

Returns e raised to the power of the argument.

Syntax

exp(z)

Beskrivning

The exp function is used to raise e, Euler's constant, to the power of z. This is the same as e^z. z may be any numeric expression that evaluates to a real number or a complex number.

sqrt-funktion

Returns the square root of the argument.

Syntax

sqrt(z)

Beskrivning

The sqrt function calculates the square root of z, i.e. z raised to the power of ½. z may be any numeric expression that evaluates to a real number or a complex number. If the calculation is done with real numbers, the argument is only defined for z 0.

root-funktion

Returns the nth root of the argument.

Syntax

root(n, z)

Beskrivning

The root function calculates the nth root of z. n and z may be any numeric expression that evaluates to a real number or a complex number. If the calculation is done with real numbers, the argument is only defined for z 0.

Anmärkningar

When the calculation is done with real numbers, the function is only defined for z<0 if n is an odd heltal. For calculations with complex numbers, root is defined for the whole complex plane except at the pole n=0. Notice that for calculations with complex numbers the result will always have an imaginary part when z<0 even though the result is real when calculations are done with real numbers and n is an odd integer.

Exempel

Istället för x^(1/3) kan du använda root(3, x).

ln-funktion

Returns the natural logarithm of the argument.

Syntax

ln(z)

Beskrivning

The ln function calculates the logarithm of z with base e, which is Euler's constant. ln(z) is commonly known as the natural logarithm. z may be any numeric expression that evaluates to a real number or a complex number. If the calculation is done with real numbers, the argument is only defined for z>0. When calculating with complex numbers, z is defined for all numbers except z=0.

log-funktion

Returns the base 10 logarithm of the argument.

Syntax

log(z)

Beskrivning

The log function calculates the logarithm of z with base 10. z may be any numeric expression that evaluates to a real number or a complex number. If the calculation is done with real numbers, the argument is only defined for z>0. When calculating with complex numbers, z is defined for all numbers except z=0.

logb-funktion

Returns the base n logarithm of the argument.

Syntax

logb(z, n)

Beskrivning

The logb function calculates the logarithm of z with base n. z may be any numeric expression that evaluates to a real number or a complex number. If the calculation is done with real numbers, the argument is only defined for z>0. When calculating with complex numbers, z is defined for all numbers except z=0. n must evaluate to a positive real number.