Converts the input in degrees to radians.
DEG2RAD(x)
x |
- |
A scalar or series, the degree input. |
A scalar or series, the result in radians.
deg2rad(45)
returns 0.785398 == π/4 radians.
W1: {0, 45, 60, 90, 180}
W2: deg2rad(w1)
W2 == {0, 0.785398, 1.047198, 1.570796, 3.141593}
W2 == {0, pi/4, pi/3, pi/2, pi}
The degree values of W1 converted to radians in W2.
If the input is a series, the vertical units are set to radians.
See RAD2DEG to convert radians to degrees.