COLLECT: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Keyword | <code>COLLECT ( equation, symbol )</code> | Try to restructure both sides of the equation as a polynomial in the given variable. The variable may be omitte...") |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Keyword | {{Keyword | ||
| | | | ||
<code>COLLECT ( [[equation]], [[symbol]] )</code> | <code>COLLECT ( [[equation]]|[[expression]], [[symbol]] )</code> | ||
| | | | ||
Try to restructure both sides of the equation as a polynomial in the given variable. The variable may be omitted, in which case iMath uses the variable that occurs in the greatest amount of powers. | Try to restructure both sides of the equation as a polynomial in the given variable. The variable may be omitted, in which case iMath uses the variable that occurs in the greatest amount of powers. | ||
Line 9: | Line 9: | ||
<code>COLLECT ( x y + x^2 y + y^2 x = 0, y)</code> will give the result <code>(x^2 + x) y + x y^2 = 0</code>. | <code>COLLECT ( x y + x^2 y + y^2 x = 0, y)</code> will give the result <code>(x^2 + x) y + x y^2 = 0</code>. | ||
|4= | |||
[[SIMPLIFY]] | |||
}} | }} | ||
[[Category:Manipulation]] | [[Category:Manipulation]] |
Latest revision as of 19:00, 10 May 2019
Syntax
COLLECT ( equation|expression, symbol )
Implemented in iMath since version 2.2.0 or earlier.
Explanation
Try to restructure both sides of the equation as a polynomial in the given variable. The variable may be omitted, in which case iMath uses the variable that occurs in the greatest amount of powers.
Example
COLLECT ( x y + x^2 y + y^2 x = 0, x)
will give the result (y^2 + y) x + x^2 y = 0
.
COLLECT ( x y + x^2 y + y^2 x = 0, y)
will give the result (x^2 + x) y + x y^2 = 0
.