- Code: Tout sélectionner
from time import *
def seuil(d):
t = monotonic()
n = 0
u = 2.
d = d**2
while (u-1)**2 >= d:
u = 1 + 1/((1-u) * (n+1))
n = n + 1
t = monotonic()-t
print("Time: {:.3f} seconds".format(t))
return [n, u]
Seuil Benchmark
Voir le premier message non lu • 2 messages
• Page 1 sur 1
Seuil Benchmark
Numworks N0120 runs the Seuil benchmark in 0.197 seconds (d = 0.008) making it faster than the HP Prime for that particular program.
-
toml_12953
Niveau 2: MI2 (Membre Initié)- Messages: 5
- Inscription: 02 Oct 2017, 15:41
- Genre:
- Calculatrice(s):→ MyCalcs profile
-
critorAdmin
Niveau 19: CU (Créateur Universel)- Messages: 41501
- Images: 14711
- Inscription: 25 Oct 2008, 00:00
- Localisation: Montpellier
- Genre:
- Calculatrice(s):→ MyCalcs profile
- YouTube: critor3000
- Twitter/X: critor2000
- GitHub: critor
2 messages
• Page 1 sur 1
Retourner vers Programmation Python
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 23 invités