MathGroup Archive 2001

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

Search the Archive

Re: Defining a function

b[a_, x_] := Evaluate[b /. Solve[{a == x+y, b == x*y}, b, y][[1]]];

b[a, x]

(a - x)*x

Bob Hanlon

In a message dated 2001/4/28 9:45:39 PM, yarblocks at writes:

>I have for example:
>a = x + y and
>b = x*y
>whats the procedure to express b as a function of a in Mathematica?

  • Prev by Date: Calculating PI
  • Next by Date: Re: Defining a function
  • Previous by thread: Defining a function
  • Next by thread: Re: Defining a function