• R/O
  • SSH

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂b7bae9fe5845e6defa8f821cc0b3993a4cecd435 (tree)
時間2007-03-21 06:08:08
作者iselllo
Commiteriselllo

Log Message

I modified the code Python-codes/ode3_solver_test.py.
The modifications are trivial (different BC's and no need to define
first x and then say x=t; so I just use t now).

Change Summary

差異

diff -r 73a577668460 -r b7bae9fe5845 Python-codes/ode3_solver_test.py
--- a/Python-codes/ode3_solver_test.py Tue Mar 20 20:55:05 2007 +0000
+++ b/Python-codes/ode3_solver_test.py Tue Mar 20 21:08:08 2007 +0000
@@ -10,20 +10,20 @@
1010
1111 k=10.
1212 y0_0=1.
13-y1_0=1.
13+y1_0=0.
1414
1515 y0 = [y0_0, y1_0]
1616
17-x = arange(0,4.0, 0.01)
17+t = arange(0,4.0, 0.01)
1818
19-t=x
20-y = integrate.odeint(func, y0, t)
19+
20+y = integrate.odeint(func, y0, t,printmessg=1)
2121
2222
2323 print 'the shape of the Lorenz solution is', shape(y)
2424
2525
26-pylab.plot(x,y[:,1])
26+pylab.plot(t,y[:,1])
2727 pylab.xlabel('Time')
2828 pylab.ylabel('y(t)')
2929 pylab.title('solution')