On Thu, May 8, 2008 at 1:32 AM, Dan Drake <[EMAIL PROTECTED]> wrote:
> I'm teaching ODEs right now and I'd like to plot the usual sort of
> solution to a 2-by-2 linear DE system, but the following doesn't work:
>
> sage: evec = vector([1,2])
> sage: var('t')
> sage: parametric_plot( exp(-t) * evec, 0, 2)
>
> The traceback's complaint is "<type 'exceptions.TypeError'>: function
> takes at most 1 positional arguments (2 given)".
>
> I know I could manually do (exp(-t), 2*exp(-t)), but the above form
> seems so natural. Is there a way to get that to work?
You could type
sage: parametric_plot( list(exp(-t) * evec), 0, 2)
I think it would be reasonable for us to improve parametric_plot so
that it takes a vector
as input instead of just a list or tuple.
We're tracking this feature request here:
http://trac.sagemath.org/sage_trac/ticket/3133
-- William
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---