diff options
author | Joe Anderson <jandew+dev@gmail.com> | 2011-11-13 10:30:19 -0600 |
---|---|---|
committer | Joe Anderson <jandew+dev@gmail.com> | 2011-11-13 10:30:19 -0600 |
commit | f90c313ba8cdbecacb527c4d20d2972664448954 (patch) | |
tree | fd6d2034a047d9072c16d422360fda257bc84516 | |
parent | 5bc91982e5116f6576d1b34081f897859177268c (diff) | |
download | toss-f90c313ba8cdbecacb527c4d20d2972664448954.tar.gz toss-f90c313ba8cdbecacb527c4d20d2972664448954.zip |
Revert "clean compare()"
This reverts commit 707fc41fefe919e95de495bd0c23efe5cd667868.
-rw-r--r-- | throw.py | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -287,6 +287,34 @@ def solve(): plot(time, soln, ['all', '!gravity']) pyplot.show() +def compare(): + global m, Mass + m = 39.7 + Mass = 650 + time, soln = solve_fun(throw, inits) + plot(time, soln, ['tension'], 8) + pyplot.title("Mass = %i" % Mass) + + m = 39.7 + Mass = 670 + time, soln = solve_fun(throw, inits) + plot(time, soln, ['tension'], 7) + pyplot.title("Mass = %i" % Mass) + + m = 39.7 + Mass = 690 + time, soln = solve_fun(throw, inits) + plot(time, soln, ['tension'], 6) + pyplot.title("Mass = %i" % Mass) + + m = 41.81320863 + Mass = 4172 + time, soln = solve_fun(throw, inits) + plot(time, soln, ['tension'], 5) + pyplot.title("Mass = %i" % Mass) + + pyplot.show() + if len(sys.argv) == 2: func_name = sys.argv[1] if func_name in dir(): |