/home/sc_serv/sage/local/lib/python2.7/site-packages/sage/misc/sage_eval.py:203: DeprecationWarning: Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...)
See http://trac.sagemath.org/5930 for details.
return eval(source, sage.all.__dict__, locals)
t = var('t')
x = function('x')(t)
y = function('y')(t)
@interact
def _(f = input_box(default = 3*x - 2*y),
g = input_box(default = x + y),
t_start = input_box(default = 0), x_start = input_box(default = 1), y_start = input_box(default = 1)):
de1 = diff(x,t) == f
de2 = diff(y,t) == g
sol = desolve_system([de1, de2], [x,y], ics=[t_start, x_start, y_start])
sol[0].show()
sol[1].show()
html(r"$\displaystyle\frac{dx}{dt} = %s$" %latex(f))
html(r"$\displaystyle\frac{dy}{dt} = %s$" %latex(g))
I’m sure the fix is easy and straightforward, but I don’t see it. Can anyone help?