Numerical Integration by Matlab
Mostra commenti meno recenti

Please mention about the tolerance of accuracy
9 Commenti
James Tursa
il 28 Dic 2020
Modificato: James Tursa
il 29 Dic 2020
What have you done so far? What specific problems are you having with your code? Are you directed to use a specific technique to come up with an approximation?
Andy Tan
il 29 Dic 2020
Walter Roberson
il 29 Dic 2020
integral()
Andy Tan
il 29 Dic 2020
Walter Roberson
il 29 Dic 2020
You said that you are not directed to use a specific technique, so you can use integral(). Or vpaintegral().
Andy Tan
il 29 Dic 2020
Walter Roberson
il 29 Dic 2020
https://www.mathworks.com/help/matlab/ref/integral.html#btbbkta-1-AbsTol
Andy Tan
il 29 Dic 2020
Walter Roberson
il 29 Dic 2020
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.
Risposte (1)
James Tursa
il 28 Dic 2020
Modificato: James Tursa
il 29 Dic 2020
0 voti
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.
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!