Numerical integration problem (quad). with approximating polynomials.

1 view (last 30 days)
I have a function L = integral of (cp(t))/(h(t)(ts-t) for t from t1 to t2 ( L,t1,t2 are given )
where cp is a function of t and it is given in expression form cp(t)= ---- h is a function of t where h(t)=(cp)/( m * k) m is a function of t and it is given in expression form m(t)= ---- k is a function of t and it is given only and some discrete points ( 9 points of form (k(t),t))
we are asked to plot the degree 1,2,3,.... interpolating polynomial for the data, using normalized data then prompts to choose a degree of approximating polynomial, (abeg = beginning point), (bend =end point) , from which a ts is sought.
I want to used * Ts=fzero(@myfun,[abeg,bend],[],p1,p2...) * [vintegral]=quad(@myfun,t1,t2,[],[],p1,p2...)
where p1,p2... are the parameters needed to execute fzero and quad
Any help is highly highly appreciated.

Answers (0)

Categories

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!