Package de.florianmichael.rclasses.math
Class Polynomials
java.lang.Object
de.florianmichael.rclasses.math.Polynomials
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Polynomials.Resultabc(double a, double b, double c) Calculates the result of a quadratic equation.static Polynomials.Resultpq(double p, double q) Calculates the result of a quadratic equation.
-
Constructor Details
-
Polynomials
public Polynomials()
-
-
Method Details
-
pq
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
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.
-