physics
Class Newton.Result

java.lang.Object
  extended by physics.Newton.Result
Enclosing class:
Newton

public static final class Newton.Result
extends java.lang.Object

Newton.Result is a record type which aggregates the results of evaluating both a function at a point and its derriviative.


Field Summary
 double f
           
 double f_prime
           
 
Constructor Summary
Newton.Result(double f, double f_prime)
           
 
Method Summary
 boolean derivativeSignChance(Newton.Result other)
           
 boolean funcSignChance(Newton.Result other)
           
 boolean signChange(Newton.Result other)
           
 java.lang.String toString()
           
 boolean undefined()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

f

public final double f

f_prime

public final double f_prime
Constructor Detail

Newton.Result

public Newton.Result(double f,
                     double f_prime)
Method Detail

undefined

public boolean undefined()

funcSignChance

public boolean funcSignChance(Newton.Result other)

derivativeSignChance

public boolean derivativeSignChance(Newton.Result other)

signChange

public boolean signChange(Newton.Result other)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object