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 can do this?

Thomas Subia

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to