Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.9K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Factoring an algebraic expression

Posted 11 years ago

I fail to understand why the Factor command behaves differently in the third case:

Factor[a^2 + 2 a b + b^2] ,Factor[x^2 + 2 x Sqrt[y] + y] ,Factor[p^2 + 2 p Sqrt[q + r] + q + r]
Attachments:
POSTED BY: jagannath debata
2 Replies

Dear Daniel
Thanks for the reply

POSTED BY: jagannath debata

Mathematica does not factor over arbitrary algebraic extensions. The one needed in this case would be say Q[Sqrt[p+q]]. Mathematica does support factoring over algebraic number fields though (things like Q[Sqrt[2]]). The actual oddity is that the second example "works". This is an artifact of internal implementation details wherein y and Sqrt[y] are represented internally as something like internalvariable[sqrty]^2 and internalvariable[sqrty] respectively (that's not the real naming but you get the idea).

POSTED BY: Daniel Lichtblau
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard