Package cnuphys.swimZ
Class SwimZRange
java.lang.Object
cnuphys.swimZ.SwimZRange
- 
Constructor SummaryConstructorsConstructorDescriptionSwimZRange(double zo, double zf, double stepSize) Create an integration range
- 
Method Summary
- 
Constructor Details- 
SwimZRangepublic SwimZRange(double zo, double zf, double stepSize) Create an integration range- Parameters:
- zo- the staring value
- zf- the ending value
- stepSize- the approximate stepsize. It will be modified to the next smaller stepsize that requires an integer number of steps.
 
 
- 
- 
Method Details- 
getZopublic double getZo()Get the starting value of z- Returns:
- the starting value of z
 
- 
getZfpublic double getZf()Get the final value of z- Returns:
- the final value of z
 
- 
getNumSteppublic int getNumStep()Get the number of steps- Returns:
- the number of steps
 
- 
getSetpSizepublic double getSetpSize()Get the step size. This is the first stepsize smaller than the one provided in the constructor that ensures an integer number of steps takes us exactly to zf, i.e. zf = zo + numStep*stepSize- Returns:
- the step size in Z
 
- 
zpublic double z(int n) Obtain z for a given step number n [0, numStep]- Parameters:
- n- the value of n
- Returns:
- the z value
 
- 
main
 
-