difference between normcdf and 1-erfc

6 vues (au cours des 30 derniers jours)
Tri
Tri le 6 Juil 2014
Réponse apportée : Tri le 6 Juil 2014
does normcdf=1-erfc
Thank you,

Réponse acceptée

the cyclist
the cyclist le 6 Juil 2014
No. Here is some simple code that creates a plot that illustrates that those two functions are not equal:
x = -5 : 0.01 : 5;
y1 = normcdf(x);
y2 = 1-erfc(x);
figure
plot(x,y1,x,y2)
legend('normcdf','1-erfc')

Plus de réponses (1)

Tri
Tri le 6 Juil 2014
Thank you! After further research, looks like normcdf = 0.5*erfc(-x/(sqrt(2))

Catégories

En savoir plus sur Special Functions dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by