Re: [R] Discriminant of a cubic polynomial

2024-10-10 Thread Leo Mada via R-help
Dear Thomas, Unfortunately, I do not know if any packages implement this functionality. Though, it is a topic that interests me. Unlike the "classic discriminant", I prefer to work with the reduced polynomial. This "discriminant" is generalizable to a superset of Chebysev polynomials (which I

[R] Discriminant of a cubic polynomial

2024-10-09 Thread tgs77m--- via R-help
Colleagues Given the coefficients of a cubic polynomial, a,b,c,d and using discriminant_cubic <- function(a, b, c, d) { D <- 18 * a * b * c * d - 4 * b^3 * d + b^2 * c^2 - 4 * a * c^2 - 27 * a^2 * d^2 return(D) } I can find the discriminant of a cubic polynomial. Is there an R package which