Need something solving! PROBLEM AHOY!
Hi there,
Im in dire need of a problem solving because i really cba to do it at this time of nite and need sorting by 2moz morning... putting my faith in PF here... I don't think its too diff I just havnt done any algebra for a while and need some...
Hi, i am trying to solve the following differential equations for a satellite traveling from Earth to Jupiter using a runge kutta algorithm.
The equations are:
dr/dt=+-(h/r)[((r/r0)-1)(1-(r/r1))]^(0.5)
and
dr/d(theta)=+-r[((r/r0)-1)(1-(r/r1))]^(0.5).
where r0 and r1 are the radii...
[b]1. 1. Analytical With the help of `Maths27', formulate the problem of when to launch the
satellite, based upon the radii of the orbits of Earth and Jupiter, assuming that both
planets have circular orbits and ignoring all potentials except that of the sun.
Provide the equations of motion...
Hi, I've written code to resolve the routes of a function using the bisection method. The code works for the current route brackets (xb and xt) and for a decimal place value of 2. However when the decimal place value is changed the loop gets stuck. Code below:
#include <iostream>
#include...
Ive came up with a cumbersome solution to it. made an array equal to it and calculated the average of that then used that as the comparison variable. Bit cumbersome but it worked...
Thanks for the reply though
I am allocating a value of 0.1 to a position in an array and it seems to be storing itself as 0.10000001. The problem is that once all the values in the array have reached 0.1 the average should be 0.1 and the loop stops, but as it is being stored as 0.1000001 the average is > 0.1 and the loop...
Hi, Thanks for the replies.
OS: XP SP2, Used qunicy 2005 to compile.
I managed to sort the problem out, redefiend the Arrays V0 and diff to 20 20.
Also in reply to the question about the loop counts, I counted from i=1 to 18 in calculating the V0 and diff arrays so the values were...
The code should solve laplace equation through an iterative technique until values change less than the specified tollerence, in this case maxdiff. I've used 3 arrays. one to store all values including initial and boundary conditions, and 2 more to store the new values and differences between...