Solve with symbols



... and if you write your equations in terms of y(t), don't solve for y, but
for y(t), e.g.

solve( [x+y(t)=3,2*x+y(t)=5], [x, y(t) ] )

On Mon, Jan 3, 2011 at 19:32, Barton Willis <willisb at unk.edu> wrote:

>
> -----maxima-bounces at math.utexas.edu wrote: -----
>
> >(%i33) y : y(t);
> >(%o33) y(t)
> >
> >(%i34) [eq1: x+y = 3, eq2: 2*x+y = 5];
> >(%o34) [x+y(t)=3,2*x+y(t)=5]
> >
> >(%i40) solve([eq1, eq2], [x,y]);
> >apply: found y evaluates to y(t) where a function was expected.
> > -- an error. To debug this try: debugmode(true);
>
> The assignment y : y(t) is a problem. Evaluating y(t) gives y(t)(t). But
> y(t) isn't a
> valid identifier for a function--thus the error. Try removing the assigment
> y : y(t).
> and either change each y to y(t), or change each y(t) to y.
>
> --Barton
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>