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

Discrepancies between try exact and approximate #23

Closed
vvs- opened this issue Feb 11, 2017 · 2 comments
Closed

Discrepancies between try exact and approximate #23

vvs- opened this issue Feb 11, 2017 · 2 comments

Comments

@vvs-
Copy link

vvs- commented Feb 11, 2017

I'm not sure if this was intended or an oversight. The display of a result in try exact and approximate mode is different for calculations with approximate numbers. Try e.g.:

set approximation approximate
pi/2
save v
cos(v*rad)
approximate
@hanna-kn
Copy link
Contributor

It is partly intentional. It is caused by a workaround to avoid cos(pi/2) ≈ 5,4845872E-78 in approximate mode.

@vvs-
Copy link
Author

vvs- commented Feb 14, 2017

That's the reason why I'm asking. This issue is about a possible bug, so if it's intentional the issue should be probably documented and closed. I leave that to your discretion.

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