public class HarmonicFunction extends java.lang.Object implements DifferentiableUnivariateRealFunction
f (t) = a cos (ω t + φ)
.Constructor and Description |
---|
HarmonicFunction(double a,
double omega,
double phi)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
HarmonicFunction |
derivative()
Returns the derivative of the function
|
double |
getAmplitude()
Get the amplitude a.
|
double |
getPhase()
Get the phase φ.
|
double |
getPulsation()
Get the pulsation ω.
|
double |
value(double x)
Compute the value for the function.
|
public HarmonicFunction(double a, double omega, double phi)
a
- amplitudeomega
- pulsationphi
- phasepublic double value(double x)
value
in interface UnivariateRealFunction
x
- the point for which the function value should be computedpublic HarmonicFunction derivative()
derivative
in interface DifferentiableUnivariateRealFunction
public double getAmplitude()
public double getPulsation()
public double getPhase()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"