cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

creating a program for multiple-application trapezoidal rule

SOLVED
Newbie

creating a program for multiple-application trapezoidal rule

I have to create a program using the multiple-application trapezoidal rule. I'm not sure what else I need to add into the program. It keeps saying my f(x) variable is undefined. I've tried a few things and nothing is working. Thanks for any/all help.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: creating a program for multiple-application trapezoidal rule

Omit the "(x)" when calling your function I, just the function name f.

4 REPLIES 4

Re: creating a program for multiple-application trapezoidal rule

Omit the "(x)" when calling your function I, just the function name f.

Re: creating a program for multiple-application trapezoidal rule

The above answer does not work, you must delete the argument "f (x)" in the definition of the function that identifies the program, remember that "f (x)" is defined before, and the plot of this, is a function of a, b and n


dza.bmp

Re: creating a program for multiple-application trapezoidal rule

Jaime Ruiz wrote:

The above answer does not work,

Are you sure?? If you claim somebody is wrong you should at least try it out yourself.

Your way of doing it would limit that function I() severely. It was very obviously Amy's intention to make the the function to be integrated a parameter of I(). That way you have a universal function at hand to approximate a definite integral.

sillypost1.png

Re: creating a program for multiple-application trapezoidal rule

Werner Exinger is right. I did as suggested and obtained the answers I needed. Thanks Werner