CalcSin
CalcSin
CalcSin[ x ] calculates the sine of a number as a decimal number.
CalcSin[ x ]
CalcSin[ x ] calculates the sine of x radians as a decimal number. x must be a decimal number such as 0.5; whole numbers and exact values such as Pi are not calculated (see the warning below).
| Example | in | out |
|---|---|---|
| A decimal number of radians. | CalcSin[ 0.5 ] |
0.479425538604 |
| Each element of a list. | CalcSin[ {0.5, 1.5} ] |
{0.479425538604, 0.997494986604} |
CalcSin[ x, Variant=>'deg' ] or CalcSin[ Quantity[x, 'deg'] ]
With the option Variant=>'deg', or with an angle in degrees, x is in degrees. Whole numbers are calculated too.
| Example | in | out |
|---|---|---|
| An angle in degrees. | CalcSin[ 30, Variant=>'deg' ] |
0.5 |
| A quantity in degrees. | CalcSin[ Quantity[30, 'deg'] ] |
0.5 |
Variant
'deg' for an angle in degrees. Default: radians.
| Syntax | Example | out |
|---|---|---|
CalcSin[ x, Variant=>'deg' ] |
CalcSin[ 30, Variant=>'deg' ] |
0.5 |
- Rounding errors are removed:
CalcSin[ Quantity[180, 'deg'] ]is displayed as . - Variables:
CalcSin[ x ]with a variablexis left unevaluated.
In radians, CalcSin only calculates decimal numbers with a fractional part. CalcSin[ 1 ], CalcSin[ 1.0 ] (which counts as the whole number 1) and CalcSin[ Pi ] are left unevaluated. Use Numerical to calculate them: Numerical[ CalcSin[1] ]. For exact values, such as the sine of Pi, use the function itself with Simplify.
See also: Numerical, Math functions, Quantity