## Dignitet och logaritm

### sqr-funktion

Returns the square of the argument.

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.

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.

#### Se även

 Wikipedia MathWorld

### sqrt-funktion

Returns the square root of the argument.

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.

#### Se även

 Wikipedia MathWorld

### root-funktion

Returns the `n`th root of the argument.

root(n, z)

#### Beskrivning

The `root` function calculates the `n`th 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).

#### Se även

 Wikipedia MathWorld

### ln-funktion

Returns the natural logarithm of the argument.

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.

#### Se även

 Wikipedia MathWorld

### log-funktion

Returns the base 10 logarithm of the argument.

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.

#### Se även

 Wikipedia MathWorld

### logb-funktion

Returns the base `n` logarithm of the argument.

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.

#### Se även

 Wikipedia MathWorld