Polynomial Homogeneous Test (CAS) - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP Prime Software Library (/forum-15.html) +--- Thread: Polynomial Homogeneous Test (CAS) (/thread-6659.html) |
Polynomial Homogeneous Test (CAS) - Eddie W. Shore - 08-06-2016 01:22 AM A polynomial is homogeneous if all of the nonzero terms has the same degree. Tests a polynomial of four variables x, y, z, and t and their combinations (x*y, x*z, x*y*z, etc). If the polynomial in question is homogeneous, the program returns a 1 (for true), otherwise 0 is returned (for false). HP Prime Program ishomogeneous Code: #cas Examples: ishomogeneous(x^2 + 3) returns 0 ishomogeneous(x^2 + 3*y^2) returns 1 (all terms are of degree 2) ishomogeneous(x^2*z – 3*y^2*t + x^3) returns 1 (all terms are of degree 3) ishomogeneous(x^2*z – 3*y^2) returns 0 Source: Avner Ash and Robert Gross. “Elliptic Tales. Curves, Counting, and Number Theory” Princeton University Press, New Jersey 2016. |