MathGroup Archive 2006

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

Search the Archive

Defining Solve results as variable


Hi,

I am trying to write a program which defines a variable with the
results of a Solve equation.

So, if I write

Solve[x+1=2,x]

I get {{x -> 1}}

I have not been able to figure out how to define a variable to the
result, so that if I then type

x1 = %, for example, it defines x1 as 1.

I know this must be simple, but I didn't find it in the Help material.

Thanks in advance,

Diana


  • Prev by Date: importing html files
  • Next by Date: Linear regression, error on both vaules x and y
  • Previous by thread: importing html files
  • Next by thread: Linear regression, error on both vaules x and y