#Given function
def f(x):
return 3*x**2
#Implementing Simpson's 1/3 rule
def simpson(x0,xn,n):
step size
h= (xn-x0)/n
finding sum
S=f(x0)+f(xn)
for i in range(1,n):
k = x0 + i*h
if i%2 == 0:
S = S + 2 * f(k)
else:
S = S+4 * f(k)
#Finding value
S = S * h/3
return S
a = float(input("Lower limit: "))
b = float(input("Upper limit: "))
n = int(input("number of sub intervals: "))
result = simpson(a , b, n)
print("Value is: %0.6f" % (result))
Can you code in python on an iPad?
Can I use iPad for coding?
Can I do python coding on iPad?
Is the iPad Pro good for coders?
Can python be installed on an iPad?
#pythontutorial
#pythonipadfree
#Pythonista
#pythonprogramming
#pythontutorial
#pythonforbeginners
#pythoncourse
#pythontutorial
#pythoncourse
#pythonprojects
#pythonbaba
#pythonautomation
#python_assignment
En esta página del sitio puede ver el video en línea Integrate function using Simpson’s rule in python de Duración hora minuto segunda en buena calidad , que subió el usuario SUPERSONIC P7R 12 diciembre 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,387 veces y le gustó 17 a los espectadores. Disfruta viendo!