Lines 714-726
Computes the error function:
Link Here
|
714 |
@tex |
714 |
@tex |
715 |
$$ {\rm erf}(x) = {2\over\sqrt\pi}\int_{0}^{x} e^{-t^2} dt $$ |
715 |
$$ {\rm erf}(x) = {2\over\sqrt\pi}\int_{0}^{x} e^{-t^2} dt $$ |
716 |
@end tex |
716 |
@end tex |
717 |
@html |
|
|
718 |
@erf(x) = 2/sqrt(Pi) * integral(exp(-t^2), t=0..x) |
719 |
@end html |
720 |
@ifnottex |
717 |
@ifnottex |
721 |
@ifnothtml |
|
|
722 |
@math{@r{erf}(x) = 2/@r{sqrt}(Pi) * @r{integral}(@r{exp}(-t^2), t=0..x)} |
718 |
@math{@r{erf}(x) = 2/@r{sqrt}(Pi) * @r{integral}(@r{exp}(-t^2), t=0..x)} |
723 |
@end ifnothtml |
|
|
724 |
@end ifnottex |
719 |
@end ifnottex |
725 |
|
720 |
|
726 |
Note that for large values of the parameter, calculating can result in |
721 |
Note that for large values of the parameter, calculating can result in |