Hi,
I need to change variable from double to float but I can’t.
private double differentiate(double phase, double noise, double naturalFrequency) {
//float AvPh= averagePhase;
// float Ph= phase;
float AvPhaMinusphase= (float) averagePhase- phase* 1;
double phaseDerivative = naturalFrequency
+ noise
+ coupling * orderParameter * PApplet.sin(AvPhaMinusphase);
return phaseDerivative;
}
How can I transform double in float?
Thanks u