Message Boards Message Boards

0
|
7891 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Algebraic Simplification Problem

Posted 10 years ago
POSTED BY: Wolfgang Baeck
4 Replies
Posted 10 years ago
POSTED BY: Xavier Roy
Posted 10 years ago

Hello Xavier,

Sorry for misspelling your name.

Wolfgang

POSTED BY: Wolfgang Baeck
Posted 10 years ago

Hello Xaver,

Thank you very much. I noticed later that there is a bar showing up after an evaluation with the option "Simplify" on it which returned the desired result. I thank you for the explanation of why it operates the way it does. It was just puzzling to me. So much to learn, so little time.

Wolfgang

POSTED BY: Wolfgang Baeck
Posted 10 years ago

Hello Wolfgang,

By default Mathematica only performs a "small" set of transformations on expressions. To get the result you want, you can use the function Simplify.

In:= Simplify[x y^2/x^-3*(x y^-2/(x (y^2)^0) - 3 y^-2/x^4)]
Out= -3 + x^4

Simplify performs several transformations on expressions and returns the simplest form. For more complex expressions, it can happen that Simplify will not lead to the result sought. In such cases, one can use the function FullSimplify. With the latter, a larger number of transformations will be tried. For instance for an expression with the Euler Gamma function:

In:= Simplify[x Gamma[x]]    
Out= x Gamma[x]

In:= FullSimplify[x Gamma[x]]
Out= Gamma[1 + x]
POSTED BY: Xavier Roy
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