You can use the plot_vector_field command:

# Declare your variables:
var('x t')

# Define you function, for instance:
def f(t,x):
    return t*x

# Plot the associated vector field:
plot_vector_field((lambda t, x: 1, f(t,x)), (-1, 1), (-2, 2))

There seems to be something awry, however, compare
plot_vector_field((lambda t, x: 1, x), (-1, 1), (-2, 2))
plot_vector_field((lambda t, x: 1, x + 0.001*t), (-1, 1), (-2, 2))
(the second one is what one expects for the differential equation x' =
x)

Why does the vector field look so different when it depends only on
one coordinate?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to