how to use vectorization and integral on erf function and erfc function?

4 次查看(过去 30 天)
Im trying to code for these equations but my math background isnt on par with this level yet. I appreciate any help on my final!
My guess would be use the values that my graph of 1-erf(z) gave me but Im not sure my graph is correct because only one of the values matched the graph erfc(z).
  7 个评论
Walter Roberson
Walter Roberson 2021-5-27
format long g
syms x
result = int(erfc(x), 0, 2)
result = 
double(result)
ans =
0.563211560832805
int(erfc(x), 0, x)
ans = 
Torsten
Torsten 2021-5-28
编辑:Torsten 2021-5-28
@Henry:
Why do you modify my code for the calculation of erfc by prescribing n as (1:6) ? n, the number of terms needed to approximate erfc(z) within a specified tolerance, is calculated within erfc depending on the magnitude of term. For higher values of z, the n also has to increase. So first try to understand what the code does before starting to modify it.

请先登录,再进行评论。

回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by