| 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: , |
|