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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

creating a program for multiple-application trapezoidal rule

ptc-4926800
1-Visitor

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.

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:ptc-4926800)

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

View solution in original post

4 REPLIES 4
Werner_E
25-Diamond I
(To:ptc-4926800)

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

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
(To:JaimeRuiz)

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

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

Announcements

Top Tags