Trapezoidal Rule or Simpsons Rule?
|
07-07-2015, 05:55 PM
(This post was last modified: 07-07-2015 08:19 PM by Arno K.)
Post: #4
|
|||
|
|||
RE: Trapezoidal Rule or Simpsons Rule?
Perhaps you want something like this:
Code:
or, after f(x):=x^3, numint(f,1,2,20), this results in 3.751875 the type-check in front allows only matching types, but the error message is not returned when it is executed the first time, that is numint(5,1,2,20) returns itself on the first run. You can easily modify it to compute via Simpsons rule in using a fifth Parameter: mode and then use some if construction. Arno |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Trapezoidal Rule or Simpsons Rule? - DrD - 07-05-2015, 10:49 PM
RE: Trapezoidal Rule or Simpsons Rule? - roadrunner - 07-06-2015, 12:33 AM
RE: Trapezoidal Rule or Simpsons Rule? - DrD - 07-06-2015, 11:24 AM
RE: Trapezoidal Rule or Simpsons Rule? - Arno K - 07-07-2015 05:55 PM
RE: Trapezoidal Rule or Simpsons Rule? - DrD - 07-07-2015, 10:15 PM
RE: Trapezoidal Rule or Simpsons Rule? - Arno K - 07-08-2015, 07:39 AM
RE: Trapezoidal Rule or Simpsons Rule? - DrD - 07-08-2015, 10:46 AM
|
User(s) browsing this thread: 1 Guest(s)