problem with canonical_form
|
08-15-2018, 01:44 PM
(This post was last modified: 08-15-2018 02:12 PM by Komanguy.)
Post: #4
|
|||
|
|||
RE: problem with canonical_form
(08-13-2018 07:35 PM)compsystems Wrote: canonical_form(x^2-6*x+y^2+10*y+18) returns poly1[153+(x-3)^2] You got this weird result because your cas variable ‘y’ is no longer symbolic. You must reset it. Quote:canonical form x^2-6*x+y^2+10*y=-18 => Unless I’m wrong, the canonical form of a quadratic expression ax^2+bx+c is a[(x+b/2a)^2−(b^2−4ac)/4a^2], x is the only variable If you have two variables you should use the canonical_form fonction for each single variable. In this example, instead of canonical_form(x^2-6*x+y^2+10*y+18) you should use canonical_form(x^2-6*x)+canonical_form(y^2+10*y+18) It’s more in accordance with the definition of a canonical form. Guy R. KOMAN, hp 50G, hp Prime Rev. C |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
problem with canonical_form - compsystems - 08-13-2018, 07:35 PM
RE: problem with canonical_form - JMB - 08-14-2018, 08:44 AM
RE: problem with canonical_form - Aries - 08-15-2018, 10:38 AM
RE: problem with canonical_form - Komanguy - 08-15-2018 01:44 PM
|
User(s) browsing this thread: 1 Guest(s)