# quaternion_norm function

The norm of a quaternion.

## How to write it

### quaternion_norm(q)

**q**

A quaternion, such as quaternion(1, 2, 3, 4). Takes an expression.

## Examples

- $\displaystyle \operatorname{quaternion\_norm}(\operatorname{quaternion}(1, 2, 3, 4)) = \sqrt{30}$

  `quaternion_norm(quaternion(1, 2, 3, 4))`

  In the solver, `quaternion_norm(quaternion(1, 2, 3, 4))` gives `sqrt(30)`.

  [Open in the solver](https://hilberon.com/?q=quaternion_norm%28quaternion%281%2C%202%2C%203%2C%204%29%29)

## Related functions

- [quaternion_multiply](https://hilberon.com/library/quaternion_multiply)

  The product of two quaternions.
- [quaternion_conjugate](https://hilberon.com/library/quaternion_conjugate)

  The conjugate of a quaternion.
- [field_add](https://hilberon.com/library/field_add)

  Sum of two elements of a finite field.
- [field_inverse](https://hilberon.com/library/field_inverse)

  The inverse of an element of a finite field.
- [group_elements](https://hilberon.com/library/group_elements)

  The elements of a group, as permutations in cycle notation.
- [permutations](https://hilberon.com/library/permutations)

  All the orderings of a list.

---
Source: https://hilberon.com/library/quaternion_norm
