vec:magnitude( $vector1 as vec:vector ) as xs:float
Returns the magnitude of the vector.
Parameters | |
---|---|
vector1 | The vector to find the magnitude of. |
xquery version "1.0-ml"; let $vec1 := vec:vector((3.14,1.59,2.65)) return vec:magnitude($vec1) => 4.40570116043091