examples/const/travel.rb in gsl-1.15.3 vs examples/const/travel.rb in gsl-1.16.0.6
- old
+ new
@@ -6,12 +6,12 @@
c = SPEED_OF_LIGHT;
au = ASTRONOMICAL_UNIT;
minutes = MINUTE;
-# distance stored in meters
-r_earth = 1.00 * au;
+# distance stored in meters
+r_earth = 1.00 * au;
r_mars = 1.52 * au;
t_min = (r_mars - r_earth) / c;
t_max = (r_mars + r_earth) / c;
@@ -28,11 +28,11 @@
c = SPEED_OF_LIGHT;
au = ASTRONOMICAL_UNIT;
minutes = MINUTE;
-# distance stored in meters
-r_earth = 1.00 * au;
+# distance stored in meters
+r_earth = 1.00 * au;
r_mars = 1.52 * au;
t_min = (r_mars - r_earth) / c;
t_max = (r_mars + r_earth) / c;