Skip to content

Python proggie that computes square roots of large numbers. Algo is from me. Dunno if I reinvented something known...

License

Notifications You must be signed in to change notification settings

Brouss3/long-sqrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Goals:

  • Calculate square roots of large integer numbers in acceptable time. (Been told I was O(log(n)²) based on chronoed operations)

  • Create my first github repo

Usage:

from longSqrt import lsqrt,sqNear1
# (sqNear1 optional, for alternate seed sqrt func)
x=119**300+11**9999+7**53   #or any long int
print(lsqrt(x))                  #voila
y=lsqrt(x,sqNear1)
print(y)

Last word:

Yes, that's short. But it's for a 20 line prog...

About

Python proggie that computes square roots of large numbers. Algo is from me. Dunno if I reinvented something known...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages