Message Boards Message Boards

0
|
4808 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

How to parse the output of FullSimplify?

Posted 11 years ago
I'm writing a program and using FullSimplify.  Its output is:

n == 31977 && m == 27693

I just want to collect 31977 into a var.  What is the easiest way to do that?

thanks!
-Joe
POSTED BY: Joe Gilray
2 Replies
Posted 11 years ago
Thanks Ilian.

I'm still learning how to better use the documentation.  In this case I thought, "it looks like an expression", so I started with the Expression page which took me to ToExpression and then ToString, but I never saw ToRules[].

Thanks again,
-Joe
POSTED BY: Joe Gilray
Maybe
In[1]:= var = n /. ToRules[n == 31977 && m == 27693]

Out[1]= 31977
POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract