Page logoMath sketchbook

Documentation for normalize

Signature

normalize(v)

Description

The normalize() function normalizes the given vector or complex number, which is achieved by dividing it by its length (for vectors) or absolute value (for complex numbers) (i.e., v/length(v) or c/abs(c)).

Variants

  • normalize(vector) -> vector
  • normalize(scalar) -> scalar

Examples

See also