MathGroup Archive 2004

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

Search the Archive

Re: multiple outputs from a function


Don't know if you have a solution already, but i would use:

t1[x_,y_]:={x^2+y,x+y^2,x+y};

{a1,a2,a3}=t1[var1,var2]
This will set a1, a2 and a3 as parts 1,2 and 3 in the list.


  • Prev by Date: Re: Solve Feature?
  • Next by Date: about Package
  • Previous by thread: Re: Re: multiple outputs from a function
  • Next by thread: Re: Re: multiple outputs from a function