MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

problem writing a simple equation--urgent!!!


Hi all,
I have a problem about writing an equation in mathematica.
I am writing the following equation:
u[x_, y_] = x + 2*y
and when I write for example u[2,4] , it gives the result. But the
problem that I have is expressing this equation with parameters. That
is
u[x[1], x[2]] = x[1] + 2*x[2]
but when I ask u[2,4];
it gives u[2,4] result.It doesn't calculate.
So, how can I write this equation? 
Thanks all.


  • Prev by Date: Question: weight matrices and MonomialOrder for GroebnerBasis
  • Next by Date: Re: Animate
  • Previous by thread: Re: Question: weight matrices and MonomialOrder for GroebnerBasis
  • Next by thread: Re: problem writing a simple equation--urgent!!!