Skip to content

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

@sekrasoft

Description

@sekrasoft

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions