Summation based benchmark for calculators
|
04-05-2023, 08:01 PM
Post: #238
|
|||
|
|||
RE: Summation based benchmark for calculators
Once again Python on PRIME
This time using "Generator" Code: from math import * significantly faster than the previous published Python code (Top of this page). The calculation is done in this one-liner: >>Sum = sum(pow(e**(sin(atan(i))),1/3) for i in range(1,Number+1)) << Code: 10,000 -> 0.101 sec 13955.8579042916 Günter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 29 Guest(s)