Purchase Solution

Matlab integral

Not what you're looking for?

Ask Custom Question

Write a function to calculate the integral from a to b of f(x) dx using the composite trapezoid rule with n equal subunits. test the code on a) the integral from 0 to pi of sin(x), b) the integral from 0 to 1 of exp(x) and c) the integral from 0 to 1 of arctan(x). Provide the codes used and all the results and work.

Purchase this Solution

Solution Summary

This provides an example of using Matlab to calculate an integral using composite trapezoid rule.

Solution Preview

Please find the solution and the MATLAB code in the attached file. The example of how to use the MATLAB code is shown in the .doc file. ...

Purchase this Solution


Free BrainMass Quizzes
Graphs and Functions

This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.

Know Your Linear Equations

Each question is a choice-summary multiple choice question that will present you with a linear equation and then make 4 statements about that equation. You must determine which of the 4 statements are true (if any) in regards to the equation.

Probability Quiz

Some questions on probability

Geometry - Real Life Application Problems

Understanding of how geometry applies to in real-world contexts

Multiplying Complex Numbers

This is a short quiz to check your understanding of multiplication of complex numbers in rectangular form.