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

조회 수: 4 (최근 30일)
Henry B.
Henry B. 2021년 5월 27일
편집: Torsten 2021년 5월 28일
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