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.
  1 件のコメント
Shunhao Huang
Shunhao Huang 2020 年 6 月 25 日
It works! Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Translated by