Commit d6195e51 authored by Lambert Patrick's avatar Lambert Patrick
Browse files

avoid Math.pow

Showing with 1 addition and 1 deletion
+1 -1
......@@ -40,7 +40,7 @@ public class Miscellaneous {
if (T <= Tmin || T >= Tmax) {
return 0;
} else {
return (T - Tmin) * (T - Tmax) / ((T - Tmin) * (T - Tmax) - Math.pow(T - Topt, 2.));
return (T - Tmin) * (T - Tmax) / ((T - Tmin) * (T - Tmax) - ((T - Topt) * (T-Topt)));
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment