Sin
The sine of x, in radians.
Sine and cosineMathWorldSineWikidataQ13647261DLMF4.14.E1FungrimSin✓Fungrim entryWolfram LanguageSin!Typed signatures
| Type | Package | Applies |
|---|---|---|
(complex) -> number | analyticreplaces compute-engine | always |
(complex) -> number | compute-engine | always |
Details
- Odd function: .
- Period : .
- Reciprocal of Csc: .
- compute-engine evaluates exactly at rational multiples of that have a closed radical form -- well past the usual set, e.g. .
- A numeric argument that isn't a recognized special angle, and isn't already floating-point, is left symbolic; pass a float or wrap in N(...) for a numeric approximation.
- Differs from Wolfram: reduces the huge argument exactly and answers correctly; Wolfram's machine-precision
N[Sin[24^40]]loses the argument and answers wrongly (it needs an explicit precision).
Examples
6 more kept as data, checked against the oraclesScope #
is a type error at boxing; Wolfram gives the range of its oscillation,
live ↗, even past where Arcsin's own closed form would otherwise hide the identity from a plain evaluate()
live ↗has 55 digits; the exact argument is still reduced modulo before Sin sees it, not rounded to working precision first
live ↗Known value · Wolfram 15.0.0 Sin
Applications #
Degrees(d) converts a degree measure to radians, so familiar degree angles still evaluate exactly
live ↗Properties #
Possible issues #
1 radian isn't a recognized special angle, so this stays symbolic; wrap in N(...) or pass 1.0 for ≈ 0.841
live ↗has a radical form, but like Wolfram's automatic evaluation the table stops short of it -- see FunctionExpand below
live ↗A huge exact argument is reduced modulo with enough working precision to get the digits right
live ↗Sin(ComplexInfinity) is Indeterminate -- off the real axis grows without bound, so it isn't confined to Interval(-1, 1) the way the real infinities are
live ↗Known value · DLMF 4.28.8
Neat examples #
About
| Examples | 95 |
|---|---|
| Checked against | Wolfram Language 81 agree9 differSageMath 38 agreeSymPy 55 agree2 differmpmath 17 agree1 differOscar 19 agreeRust 26 agree2 differ2 error |
| Crosswalk | WikipediaMathWorldWikidataDLMFFungrimFungrim entry ×101Wolfram LanguageSageMathSymPympmathOscarRust |
Implementation
oscarpackages/oracle/src/mappings.tswolframpackages/oracle/src/mappings.tssympypackages/oracle/src/mappings.tsmpmathpackages/oracle/src/mappings.tssagepackages/oracle/src/mappings.tsrustpackages/oracle/src/mappings.ts