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

Some computations hang #16

Open
rubenvannieuwpoort opened this issue Oct 12, 2022 · 2 comments
Open

Some computations hang #16

rubenvannieuwpoort opened this issue Oct 12, 2022 · 2 comments

Comments

@rubenvannieuwpoort
Copy link
Owner

Example:

$ python
Python 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from reals import pi, exp
>>> exp(pi - pi)
@rubenvannieuwpoort
Copy link
Owner Author

The computation of exp(x) that is currently used, works only when x != 0. A workaround is to compute exp(x) as exp(x - 1) * e.

@rubenvannieuwpoort
Copy link
Owner Author

rubenvannieuwpoort commented Sep 10, 2023

Another example of a computation that hangs:

>>> from reals import cos
>>> f'{cos(1428599129020608582548671):.73f}'
'0.0000000000000000000000000608293384990614694490506501837196102750264145727'
>>> f'{cos(1428599129020608582548671):.74f}'

I have no idea what causes this, need to investigate.

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

1 participant