I used matlab to calculate the integration of a basic function.(adsbygoogle = window.adsbygoogle || []).push({});

I wrote :

F = inline('(2*x)+((x.^3)/0.000441)')

Q = quad(F,0.01,0.05)

I want to calculate integral of F from 0.01 to 0.05

the answer shown is 0.059

but the real answer is 0.361

I am sure the function F is correct (I have tried some values).

is there any problem with "Q = quad(F,0.01,0.05)" command???

Thank you for your help...

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Using Matlab for integration

**Physics Forums | Science Articles, Homework Help, Discussion**