AngouriMath

Navigation

← Back to list of members

VectorLength​(AngouriMath.​Entity.​Matrix)

 Method (no overloads)

Summary

The Euclidean length of a vector, sqrt(sum of the squares of its cells).

Parameter "v"

The vector whose length is taken.

Returns

Its length, as Abs(AngouriMath.Entity) of the vector.

Remarks

A name rather than a new capability: abs([3, 4]) has always answered 5,
and this is that spelled so it can be found. Named on
#321, where the
observation that "VectorLength is Abs" is the whole implementation.

Exception "ArgumentNullException"

Thrown where the vector is null.

Example

using System;
using AngouriMath;
using static AngouriMath.MathS;
            
Console.WriteLine(VectorLength(Vector(3, 4)).Simplify());

Prints
5

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online