Borrar filtros
Borrar filtros

how to approximate exponential integral

3 visualizaciones (últimos 30 días)
Shunhao Huang
Shunhao Huang el 25 de Jun. de 2020
Comentada: Shunhao Huang el 25 de Jun. de 2020
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!

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Polynomials en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by