Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
int infinity
#1
so int has no infinity. i guess i just need to use some extremely large numbers. for this its going to need to be so large that repeating divide by some int not larger than 2**64 remains above 2**64 for a long time (no definition). such a number is going to take a lot of memory. that's why i was hoping that int supported an infinity.

infint = (2**64)**(2**32) # i doubt it will figure this out in 16GB

the real problem is the time it takes to create the value for infint. it's going to take as much time as what the divides would, or close to it.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
int infinity - by Skaperen - Apr-17-2019, 03:34 AM
RE: int infinity - by Gribouillis - Apr-17-2019, 04:37 PM
RE: int infinity - by Skaperen - Apr-19-2019, 02:31 AM
RE: int infinity - by perfringo - Apr-17-2019, 07:30 PM
RE: int infinity - by Skaperen - Apr-19-2019, 10:41 PM
RE: int infinity - by Gribouillis - Apr-17-2019, 09:47 PM
RE: int infinity - by DeaD_EyE - Apr-18-2019, 07:00 AM
RE: int infinity - by Gribouillis - Apr-19-2019, 04:16 AM
RE: int infinity - by DeaD_EyE - Apr-19-2019, 08:51 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020