Numerical Integration by Matlab

3 次查看(过去 30 天)
Andy Tan
Andy Tan 2020-12-28
Please mention about the tolerance of accuracy
  9 个评论
Andy Tan
Andy Tan 2020-12-29
I have tried but I want to set the tolerance of accuracy 10^-7 but the the results shown in the Matlab is 4decimal places,I don't think the AbsTol is effective?
Walter Roberson
Walter Roberson 2020-12-29
Give the command
format long g
and then display the result again.
By default, MATLAB only displays 4 decimal places, but the values are stored internally to higher precision.

请先登录,再进行评论。

回答(1 个)

James Tursa
James Tursa 2020-12-28
编辑:James Tursa 2020-12-29
Hint: You might look here:
Knowing that the integral of the Normal density function from -infinity to +infinity is 1 exactly, maybe you can come up with a change of integration variable to get that equation in a form that matches your integral to get the exact answer directly. Starting with a standard Normal density function (mu=0, sigma=1), it is a pretty easy substitution from there to get what you have.

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by