All Questions
2 questions
2
votes
1
answer
69
views
Numerical integration of the dataset of a function
The energy equation for a spherically symmetric system is given by
$$\mathscr{E}=\frac{v^2(r)}{2}+\frac{c_s^2(r)}{\gamma-1}+\phi(r)$$
where $\mathscr{E}$ is the total energy, $v$ is the velocity of ...
1
vote
2
answers
69
views
Numerical integral with symbolic integral in exponent
Many times in fourier approximation we come across integrals such as
$$\int_0^1 e^{-\gamma\int_0^xu_0(\eta)d\eta}dx$$ where $\gamma$ is a constant and the data for $u_0$ is provided as a discretely ...