0
hi guys e^1/x= 1+1/x^1×1!+1/x^2×2! i have to type this and get the pythons value and my approximation value i have no clue on how to do it
please help me i have the question send me your email so i can send the pic
1 Resposta
0
import math
x=1.0. # whatever
y1 = math.exp(1/x) # e^1/x
y2 = 1+1/(x**1*math.factorial(1)) # etc.