En ce momentGenshin ImpactValhallaBreath of the wildAnimal CrossingGTA 5Red dead 2
Liste des sujets
[Python] Logarithme et exponentielle
agator5198
Niveau 4
15 octobre 2018 à 20:35:31
Bonjour,
je voulais savoir si quelqu'un sait comment faire pour avoir un ptit programme en python qui permet de calculer le logarithme et l'exponentielle du nombre que l'on veux Merci
blackapplex
Niveau 10
15 octobre 2018 à 21:06:42
Avec numpy tu as np.log(x) et np.exp(x)
Exacompta
Niveau 10
15 octobre 2018 à 22:10:24
Oui, tu as ça dans la librairie math :
import math
x = input()
x = float(x)
print(math.exp(x))
print(math.log(x))