Find the integral of a function, Mathematics

Assignment Help:

We want to find the integral of a function at an arbitrary location x from the origin. Thus,

1486_find the integral of a function.png

where I(x=0) is the value of the integral for all times less than 0. (Essentially, I(x=0) is the unknown constant of integration or the initial condition.) From the class lecture on the trapezoidal rule for numerical integration, it can be seen that this function can be approximated by

2413_find the integral of a function1.png

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule. Your function should accept two vectors as inputs, x and f.

The first vector (x) contains the independent variable data (the points at which the values of the function are known. The second vector (f) should contain the values of the function at the points provided in the first vector. Your function should return the integral of f with respect to x, as a function of x.


Related Discussions:- Find the integral of a function

Course work2 , (b) The arity of an operator in propositional logic is the n...

(b) The arity of an operator in propositional logic is the number of propositional variables that it acts on – for example, binary operations (e.g, AND, OR, XOR…) act on two propo

Area and perimeter, if perimeter is 300m length is 100m.find the breadth

if perimeter is 300m length is 100m.find the breadth

Find the larger of two supplementary angles, The larger of two supplementar...

The larger of two supplementary angles exceeds the smaller by 180, find them. (Ans:990,810) Ans:    x + y = 180 0          x - y =  18 0        -----------------

What is the continuously compounded forward rate, At time t an investor s...

At time t an investor shorts a $1 face value zero coupon bond that matures at time T = t and uses the entire proceeds to purchase a zero coupon bond that matures at time

H, 6987+746-212*7665

6987+746-212*7665

Differential calculus, lim n tends to infintiy ( {x} + {2x} + {3x}..... +{n...

lim n tends to infintiy ( {x} + {2x} + {3x}..... +{nx}/ n2(to the square) )where {X} denotes the fractional part of x? Ans) all no.s are positive or 0. so limit is either positive

Probability, A man is known to speak truth 3 out of 4 times.He throws adi...

A man is known to speak truth 3 out of 4 times.He throws adie and reports it is a six. Find the probability that it is actually a six. Solution)  we can get a six if a man s

Formulas, all formulas of plane figures

all formulas of plane figures

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd