deg2rad

Syntax

deg2rad(X)

Details

Convert angle units from degrees to radians for each element of X.

Note:
DolphinDB's deg2rad function works the same as NumPy's numpy.deg2rad, except that it only accepts a single parameter, X, and does not support parameters like out or where in numpy.deg2rad.

Parameters

X is a scalar/vector.

Returns

A DOUBLE scalar/vector.

Examples

deg2rad 45 90 180 360;
// output: [0.785398,1.570796,3.141593,6.283185]