Hi, I was wondering if there exists an algorithm for one by one digit computation of an integer to the power of any real number? Couldn't find anything on the net.
Sorry I got it wrong, you have to determine the part of the velocity verctor that is parraler to the verctor pointing from astronaut to the airlock. Which is |\overline{v}| cos \varphi. Using |\overline{v}||\overline{u}|cos \varphi = |\overline{v}\cdot\overline{u}| you should get it.
I used McLaurin formula for e^x. The limits aren't the same but you can get back to x after integrating. The two term approximations means you use only two first terms in the sum. The sum is alternating so the error won't be greater than the absolute value of the third term in this case.
The first function is in first two aproximations always zero.
For the second i would suggest
\int_0^t e^{-x^2}dx = 0.5\int e^{-s}s^{-1/2}ds
then approximate e^{-s} which would lead to
0.5\int \sum_0^\infty((-1)^n (1/n!)s^{n})s^{-1/2}ds
which can be easily integrated