Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Option to set calc trigonomic functions with degrees (not radian) #61

Open
Idelmaeaen opened this issue Jul 19, 2020 · 1 comment

Comments

@Idelmaeaen
Copy link

It would be helpfully to have an boolean option, where you can switch trigonomic functions (sin, cos, tan, ...) to calculate with degrees and not with radians.

I think this would be easy to implement...

@FabianNitsche
Copy link

FabianNitsche commented Dec 15, 2020

Actually, you can already do that by adding your own functions. With the methods CalculationEngine.AddFunction you can do something like:

CalculationEngine engine = new CalculationEngine(...);
engine.AddFunction("dsin", d => Math.Sin(d / 180 * Math.PI));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants