|
[Date Index]
[Thread Index]
[Author Index]
RE: Defining Solve results as variable
- To: mathgroup at smc.vnet.net
- Subject: [mg70049] RE: [mg70022] Defining Solve results as variable
- From: "Erickson Paul-CPTP18" <Paul.Erickson at Motorola.com>
- Date: Sun, 1 Oct 2006 04:09:22 -0400 (EDT)
Well it appears one way is:
x1 = x /.Flatten[ Solve[x+1==2,x] ]
1
-----Original Message-----
From: Diana [mailto:diana.mecum at gmail.com]
To: mathgroup at smc.vnet.net
Subject: [mg70049] [mg70022] 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:
Re: Defining Solve results as variable
Next by Date:
Re: showing variables in plots?
Previous by thread:
Re: Defining Solve results as variable
Next by thread:
Re: Defining Solve results as variable
|