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

Support more trigonometric functions #457

Open
PaddiM8 opened this issue Jan 1, 2022 · 1 comment
Open

Support more trigonometric functions #457

PaddiM8 opened this issue Jan 1, 2022 · 1 comment

Comments

@PaddiM8
Copy link

PaddiM8 commented Jan 1, 2022

It seems like arc functions and hyperbolic functions are lacking, which is a bit limiting. Having these would make it almost as feature-rich as f64.

@schungx
Copy link
Contributor

schungx commented Jan 2, 2022

Since none of the trig functions necessarily maintain precision (or have perfect precision in the first place), it really might actually be better to first convert the Decimal to f64, do whatever trig function, then convert the result back.

Instead of giving a false impression to users that, somehow, Decimal trig functions are more precise than f64 ones (they are not).

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

No branches or pull requests

3 participants