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

10**46 is too big to calculate tan precisely #1

Open
sekrasoft opened this issue Aug 20, 2020 · 0 comments
Open

10**46 is too big to calculate tan precisely #1

sekrasoft opened this issue Aug 20, 2020 · 0 comments

Comments

@sekrasoft
Copy link

This issue is for future generations who will try run the script in XXII+ century under python 3 and exceed 10**16. Please note that tan(x) doesn't make sense for x > 10**sys.float_info.dig because tan uses floating point numbers.

prime_tan/tan-big-v0.py

Lines 31 to 34 in df1d075

while value <= 10**46: # go big or go home
this_int = round(value,0)
if abs(math.tan(this_int)) >= this_int:

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