Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Insert predefined values into Solve result list' topicStudent Support Forum > General > "Insert predefined values into Solve result list"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Peter Pein
11/01/11 5:49pm

In Response To 'Re: Re: Insert predefined values into Solve res...'
---------
Hi,

having all the values already set makes this a hard task.

I'm afraid, your request "Solve[{A+B=6,A-B=4},{A,B}] And IŽd like to get: {{A -> 4,B -> 1,Value1 -> 223, Value2 -> 421, Value3 -> 123}}" can not be accomplished, because 4+1==5 ;-)

When you executed "Value001=223;" before then
"someExpressionContaining[Value001]/.Value001->223"
makes no sense (to me(!)), because "Value001" will not appear in the left hand side of this replacement.

So I describe in the attached notebook, how to generate a file containing the rules for already set variables. This file can be used in other notebooks or after a Clear[Global`*]. You will have to know in advance which symbols are to appear in the list of rules.


Hope that helps,
Peter


Attachment: appendRules.nb, URL: ,

Subject (listing for 'Insert predefined values into Solve result list')
Author Date Posted
Insert predefined values into Solve result list Indrek 10/26/11 03:59am
Re: Insert predefined values into Solve result ... Peter Pein 10/30/11 09:44am
Re: Re: Insert predefined values into Solve res... Indrek 10/31/11 08:21am
Re: Re: Re: Insert predefined values into Solve... Peter Pein 11/01/11 5:49pm
Re: Re: Re: Re: Insert predefined values into S... Indrek 11/03/11 06:34am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic