Calculus: Easy Derivatives and Integrals Using Python

preview_player
Показать описание
How to use Python to calculate the derivatives and integrals of functions. This program will get you the numerical values, but not the general function. But the computer does the hard work! Hope it helps you explore functions in Calculus.
Рекомендации по теме
Комментарии
Автор

You're one of the few reasons I like youtube!

Subscribed.

mohamedbehery
Автор

for python 3 users:

def squared(num):
return num**2

def derivative(num):
h = 1./1000.
rise = squared(num+h) - float(squared(num))
run = h
slope = rise / run
return print(slope)

MusicGameFinatic
Автор

This is Aaaawwwsome, my friend. This helped me a lot.

janzaibmbaloch
Автор

Thanks, just what I was looking for, this helped. It's nice that someone is making useful tutorials like these =)

septitais
Автор

this one is the easiest way to explain given topic

NamitKewat
Автор

Thanks. It's interesting. How can i get the patterm?

athovinh
Автор

Wow, I wish I had this when I was taking Calc

robertlucas
Автор

how could you extend this to double integral and triple integrals?

enzo
Автор

integral part is not working its showing error

Ellenki_
Автор

i found a solution for integral part for those the integral problem doesnt get solved type this code instead
def integral(ax, bx, noofrecs):
width=(bx-ax)/noofrecs
runsum=0
for i in range(noofrecs):
height=((ax+i*bx)**2)
area=height*width
rrnsum+=area
return runsum

Ellenki_
Автор

you have a simple ass power function and you somehow managed to confuse me.
yes, numerical methods tend to be a little more of a pain.
but f'(x) would be x**1 / 1 in simple math...
because that limit is defined as lim when h tends to x, h < x of [ f(x) - f(h) ] / x-h, hint busts in, l'Hôpital's rule makes it a piece of cake for us human beings to solve that 0/0 and we get a nice 2 out of it.
you took it the other way and added a value to x ...
for precision, you should have went further and add a much smaller value.
other than that, congratulations!

however, I'd like to see you make a software on github using that limit that defines derivatives of functions in order to derive and the Reimann's sum in order to integrate... that can solve stuff like 1 / {x*[1+ln(x)]} which is easy to do on a sheet of paper, but it can get painful to do with a computer...

Anthaghoull