Answer to Question #5581 in MatLAB | Mathematica | MathCAD | Maple for Shayan

Question #5581
use Matlab for solving the following integral:
integral(-1 to 4)((1+5e^(-25x^2)/(1+x^2/25))dx.
1
Expert's answer
2011-12-15T07:13:44-0500
> use Matlab for solving the following integral:
> integral(-1 to 4)((1+5e^(-25x^2)/(1+x^2/25))dx.

Run the following MATLAB code:

f=@(x)(1+5*exp(-25*x.^2)./(1+x.^2/25));
quad(f,-1,4)

This will give the output:

ans =
6.7710

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS