how to approximate exponential integral

조회 수: 1 (최근 30일)
Shunhao Huang
Shunhao Huang 2020년 6월 25일
댓글: Shunhao Huang 2020년 6월 25일
I was doing an iterating algorithm on a chi-square distribution. I want to get a numerical result but instead matlab gave me the following expression:
y =
9.488080697552181667109694795787 - (ei(-1/2)*exp(1/2))/2
Is there a way I can tell matlab to give a numerical approximation? Thanks!

채택된 답변

John D'Errico
John D'Errico 2020년 6월 25일
vpa(y)
or
double(y)
Either will suffice, depending on whether you want a symbolic floating point number of not.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by