import math

# e puissance x : math.exp(x), la même chose que math.e ** x
for x in (0, 1, 2, -1):
    print(f"x = {x:>2}   math.e ** x = {math.e ** x:.4f}   math.exp(x) = {math.exp(x):.4f}")

# La règle des exposants de la leçon 0.3 vaut pour e comme pour 2
print("exp(1) * exp(2) =", round(math.exp(1) * math.exp(2), 4))
print("exp(1 + 2)      =", round(math.exp(1 + 2), 4))
