Class Polynomials

java.lang.Object
de.florianmichael.rclasses.math.Polynomials

public class Polynomials extends Object
  • Constructor Details

    • Polynomials

      public Polynomials()
  • Method Details

    • pq

      public static Polynomials.Result pq(double p, double q)
      Calculates the result of a quadratic equation. The equation must be in the form of x^2 + px + q = 0.
      Parameters:
      p - The p value.
      q - The q value.
      Returns:
      The result.
    • abc

      public static Polynomials.Result abc(double a, double b, double c)
      Calculates the result of a quadratic equation. The equation must be in the form of ax^2 + bx + c = 0.
      Parameters:
      a - The a value.
      b - The b value.
      c - The c value.
      Returns:
      The result.