Trigonometric and Hyperbolic Functions in the Standard Units Environment
Description
Examples
In the Standard Units environment, the arguments for the trigonometric or hyperbolic functions can be unit-free, in which case the argument is assumed to be given in terms of radians, or multiplied by a unit of angle with the dimension length/length(radius). An error is returned if the dimension of the argument is not an angle.
If the argument has a unit of angle, it is converted to a free expression in the call to the corresponding global function. Therefore, a call to sin(7*deg) returns as sin(7/180*Pi), because 1 degree equals π180 radians.
For other properties, see the global functions in the trig help page.
Notes:
To enter a unit in 2-D Math input, select the unit from the appropriate Units palette. If the unit you want is not there, select unit and then enter the unit.
When you edit a unit, double brackets appear around it.
with⁡UnitsStandard:
sin⁡3⁢Unit⁡deg
sin⁡π60
sin⁡180⁢Unit⁡deg
0
cos⁡172.⁢Unit⁡deg+40.⁢Unit⁡arcmin+10.32⁢Unit⁡arcsec
−0.9918267366
See Also
trig
Units
Units/angle
Units/Standard
Download Help Document