Python Forum
Differentiate and Integrate A Given Function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Differentiate and Integrate A Given Function
#1
Hello, I need your helping hands for our course project. Our lecturer requested us to differentiate and integrate a function entered. The hardest part for us is using python libraries (scipy, sympy, etc.) are not allowed to use. Our assistant advised us to use some different methods and approximations to reach to solutions. Thanks for your helps in advance.

To Differentiate:

-Forward Difference Approximation
-Backward Difference Approximation
-Richardson Extrapolation Approximation

To Integrate:

-Trapezodial Method
-Simpson's Rule
-Monte Carlo Method
Reply
#2
Welcome to the forum. We are glad to help, but we are not great at doing your homework for you.
Post what you have tried. Post python code in python tags, full traceback - if you get any - in error tags. Ask specific questions.
Of course first step is to understand math science behind each of these methods.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
You don't really need libraries to implement those approximations. I mean, forward difference for example should be more or less translating the maths into code quite straightforwardly. Do you understand how the methods work? Presumably you learnt the basic ideas when you first started learning calculus.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to integrate gcd function hhydration 3 2,136 Oct-28-2020, 02:05 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020