I am trying to solve the motion equations for the Trojan Asteroids in Sun-Jupiter system. However, i am getting this error
Syntax: '(' cannot be followed by 'x[t],y[t]'
in this code
Alpha = 0.000953875;
r_1 = Sqrt[(x - Alpha)^2 + y^2];
r_2 = Sqrt[(x + 1 - Alpha)^2 + y^2];
x_0 = -0.509;
y_0 = 0.883;
u_0 = 0.0259;
v_0 = 0.0149;
NDSolve[
{x'[t] == u[t],
y'[t] == v[t],
u'[t] == -(1 - Alpha) (x[t] - Alpha)/r_1 (x[t], y[t])^3 - Alpha (x[t] +
1 - Alpha)/r_2(x[t], y[t])^3 + x[t] + 2 v[t],
v'[t] == -(1 - Alpha) y[t]/r_1 (x[t],
y[t])^3 - Alpha y[t]/r_2 (x[t], y[t])^3 + y[t] - 2 u[t],
x[0] == x_0, y[0] == y_0,
u[0] == u_0, v[0] == v_0},
{x, y, u, v}, {t, 0, t_max}]
Of course, i am extremely average at coding, so any kind of help will suffice
Thanks

_has a predefined meaning in MMA. Try removing all those that you have used inside variable names and see how much that helps. – Bill Sep 03 '18 at 06:33