Commits

Anonymous committed d9c3e26

Einfacher Fit : verifiziert: Max-Geschwindigkeit und damit Energiekosten steigen mit der Quadratwurzel der Beschleunigung.

  • Participants
  • Parent commits 2d7c679

Comments (0)

Files changed (1)

Skripte/flytime-to-mars.pyx

 # User: Arne Babenhauserheide
 
 set width 15
+set title "flytime, maximum velocity and relativistic error for a flight to mars."
 set xlabel "accelleration [g]"
 set ylabel "time [days] / maximum velocity [tenth of c] / relativistic error (\%)"
-set title "flytime, maximum velocity and relativistic error for a flight to mars."
 set xrange [4:220]
 
-plot "d" using 1:2 title "flytime", "d" using 1:3 title "vel-max", "d" using 1:4 title "error-rel"
-set output flytime.png
-set term png
-replot
+f(x) = a*sqrt(x)
+fit f() "flytime-to-mars.txt" using 1:3 via a
+
+plot "flytime-to-mars.txt" using 1:2 title "flytime", "d" using 1:3 title "vel-max", "d" using 1:4 title "error-rel", f(x) title "0.289*sqrt(x)"
+#set output flytime.png
+#set term png
+#replot
 set term x11
 replot