Python Forum
I dont think that this i hard, but I dont understand!
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I dont think that this i hard, but I dont understand!
#1
Hi! Can someone help me with this question? I dont understand how to do it and our teachers just say "google it" and I cant find something helpful... 

Write a function ctrapezoidal(f, a, b, n) which implements the trape- zoidal approximation. Test this function for different n and compare your result to the exact integral. (Choose a simple function f that you can integrate by hand, e.g. ex. However, don’t make it too simple.)

I found a formula on google when I googled trapezoidal rule so I think that I should use it but I dont know how to do it in python :(
Reply


Messages In This Thread
I dont think that this i hard, but I dont understand! - by Linamellannamn - Nov-28-2016, 05:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  This is Very Hard! Harshil 13 4,659 Aug-16-2020, 05:09 PM
Last Post: DPaul

Forum Jump:

User Panel Messages

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