| Hosted by CoCalc | Download
var('s','t','T') A=matrix(A_elements_dict); f=A(s=t/T) reset('i'); reset('x'); def Sch(t,y): return [ -i*sum(f[j,k]*y[j] for k in range(2^L)) for j in range(2^L)] NL1=[1 for i in range(2^L)]; TS=ode_solver() TS.algorithm = "rk4" TS.function=Sch TS.y_0 = NL1 TS.ode_solve(t_span=[0,T], num_points=100) print TS.solution;
(s, t, T)
Error in lines 2-2 Traceback (most recent call last): File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_server.py", line 864, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> NameError: name 'A_elements_dict' is not defined