Skip to content

Commit

Permalink
AA
Browse files Browse the repository at this point in the history
  • Loading branch information
abrudana_cp authored and abrudana_cp committed May 23, 2017
1 parent 5a46821 commit 0c6261a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WorldWideAstronomy/WWA/Astronomy/SpaceMotion/pvstar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public static int wwaPvstar(double[,] pv, ref double ra, ref double dec, ref dou

/* The inertial-to-observed correction terms. */
d = 1.0 + betr;
w = betr * betr - bett * bett;
w = betr * betr + bett * bett;
if (d == 0.0 || w > 1.0) return -1;
del = w / (Math.Sqrt(1.0 - w) + 1.0);
del = -w / (Math.Sqrt(1.0 - w) + 1.0);

/* Apply relativistic correction factor to radial velocity component. */
w = (betr != 0) ? (betr - del) / (betr * d) : 1.0;
Expand Down

0 comments on commit 0c6261a

Please sign in to comment.