Skip to main content
1-Visitor
April 29, 2013
Solved

creating a program for multiple-application trapezoidal rule

  • April 29, 2013
  • 4 replies
  • 3026 views

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.

Best answer by Werner_E

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

4 replies

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
April 29, 2013

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

1-Visitor
May 6, 2013

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

Werner_E
25-Diamond I
May 6, 2013

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

1-Visitor
May 7, 2013

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