Class Cubic


  • public class Cubic
    extends java.lang.Object
    this class represents a cubic polynomial
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) float a  
      (package private) float b  
      (package private) float c  
      (package private) float d  
    • Constructor Summary

      Constructors 
      Constructor Description
      Cubic​(float a, float b, float c, float d)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float eval​(float u)
      evaluate cubic
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • a

        float a
      • b

        float b
      • c

        float c
      • d

        float d
    • Constructor Detail

      • Cubic

        public Cubic​(float a,
                     float b,
                     float c,
                     float d)
    • Method Detail

      • eval

        public float eval​(float u)
        evaluate cubic