Class QuadraticEquation

java.lang.Object
com.aidano7.bison.algebra.equations.QuadraticEquation
All Implemented Interfaces:
Equation

public class QuadraticEquation
extends java.lang.Object
implements Equation
Author:
aidano-7

Implementation of a quadratic in Bison. Standard form is ax^2 + bx + c = 0.

  • Constructor Summary

    Constructors
    Constructor Description
    QuadraticEquation()  
  • Method Summary

    Modifier and Type Method Description
    float get​(float x)
    Gets the y value of a function.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.aidano7.bison.algebra.equations.Equation

    toString
  • Constructor Details

    • QuadraticEquation

      public QuadraticEquation()
  • Method Details

    • get

      public float get​(float x)
      Gets the y value of a function.
      Specified by:
      get in interface Equation
      Parameters:
      x - the x value to get
      Returns:
      y the y value of the function