dtor

Convert degrees to radians.

Syntax

dtor(expr)

Argument

expr
A valid scalar, vector, or matrix expression.

Example

Templex Expression Result
{dtor(90)} 1.5708
{dtor( {0, 180, 360} )} 0, 3.14159, 6.28319
{dtor( { {0, 90}, {180, 270} } )} {0, 1.5708},{3.14159, 4.71239}

Comments

If expr is a scalar, the result is expr converted to radians. The result is a scalar.

If expr is a vector, the result is a vector of the same dimensions containing each element of expr converted to radians.

If expr is a matrix, the result is a matrix of the same dimensions containing each element of expr converted to radians.