Homogenize a polynomial.
homogenize(x, indeterminate = "t") dehomogenize(x, indeterminate = "t") is.homogeneous(x) homogeneous_components(x)
x | an mpoly object, see |
---|---|
indeterminate | name of homogenization |
a (de/homogenized) mpoly or an mpolyList
#> [1] FALSE(xh <- homogenize(x))#> x^4 + y t^3 + 2 x y^2 t - 3 z t^3is.homogeneous(xh)#> [1] TRUEhomogeneous_components(x)#> y - 3 z #> 2 y^2 x #> x^4homogenize(x, "o")#> x^4 + y o^3 + 2 x y^2 o - 3 z o^3xh <- homogenize(x) dehomogenize(xh) # assumes indeterminate = "t"#> x^4 + y + 2 x y^2 - 3 z#> x^4 + y + 2 x y^2 - 3 z#> x + y^2 #> x + y^3(psh <- homogenize(ps))#> x t + y^2 #> x t^2 + y^3dehomogenize(psh)#> x + y^2 #> x + y^3#> #>#>#> #>#> x^2 + 2 x y + 3 y^2#> [1] 2#> 9 x^2 + 18 x y + 27 y^2lambda^d * ph#> 9 x^2 + 18 x y + 27 y^2