Python Forum
bigsqrt - Python vs Pike
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bigsqrt - Python vs Pike
#1
this is a commandline program i wrote many years ago in both Python (my first Python program) and Pike. both are given below.  the Pike code is substantially faster.  this program does its work using big ints, so that ends up being what is compared.  give it one argument, the number to find the square root of.  if no arguments are given, it will compute the golden ratio.  it just keeps outputting digits to get more and more precise (never ending).
Tradition is peer pressure from dead people

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


Messages In This Thread
bigsqrt - Python vs Pike - by Skaperen - Oct-04-2016, 06:23 AM
RE: bigsqrt - Python vs Pike - by wavic - Oct-04-2016, 09:10 AM
RE: bigsqrt - Python vs Pike - by nilamo - Oct-04-2016, 06:21 PM
RE: bigsqrt - Python vs Pike - by micseydel - Oct-04-2016, 07:56 PM
RE: bigsqrt - Python vs Pike - by Skaperen - Oct-05-2016, 04:44 AM
RE: bigsqrt - Python vs Pike - by snippsat - Oct-05-2016, 09:42 AM
RE: bigsqrt - Python vs Pike - by nilamo - Oct-05-2016, 02:30 PM
RE: bigsqrt - Python vs Pike - by Skaperen - Oct-06-2016, 12:24 AM
RE: bigsqrt - Python vs Pike - by nilamo - Oct-06-2016, 02:52 PM
RE: bigsqrt - Python vs Pike - by Skaperen - Oct-07-2016, 03:43 AM

Forum Jump:

User Panel Messages

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