Message Boards Message Boards

0
|
1235 Views
|
2 Replies
|
4 Total Likes
View groups...
Share
Share this post:

How would I represent a simple proof in Mathematica, such as x == 2 => x * x == 4?

Posted 7 months ago

I guess something like this would return true or false, depending on whether the implication holds true or not. Is there a way to do this?

POSTED BY: Janish Suneja
2 Replies

There are utilities for manipulating equations. Using them in sequence result in a proof:

x == 2
ApplySides[#^2 &, %]

This gives the result without proof:

Reduce[x == 2 \[Implies] x*x == 4]
POSTED BY: Gianluca Gorni
Posted 7 months ago

If you try

Simplify[p,q]

Mathematica will try to simplify p given the information supplied in q.

For your example

Simplify[x*x==4,x==2]

returns

True

See if that will do the kinds of things you are looking for.

POSTED BY: Bill Nelson
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