Add basic trigonometric functions (#7258)

`math sin`
`math cos`
`math tan`

Support degrees with the flag `--degrees`/`-d`
This commit is contained in:
sholderbach
2022-11-27 16:28:27 +01:00
committed by Stefan Holderbach
parent 64f226f7da
commit b27d6b2cb1
5 changed files with 329 additions and 0 deletions

View File

@ -405,6 +405,9 @@ pub fn create_default_context() -> EngineState {
MathStddev,
MathSum,
MathVariance,
MathSin,
MathCos,
MathTan,
MathPi,
MathEuler,
};