how to approximate exponential integral

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!

 采纳的回答

vpa(y)
or
double(y)
Either will suffice, depending on whether you want a symbolic floating point number of not.

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Particle & Nuclear Physics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by