Closed LinasKo closed 5 years ago
// Accepted answer uses: float dt_2 = dt dt; float dt_3 = dt_2 dt; float dt_4 = dt_3 * dt;
// The following is not accepted
... float dt_2 = pow(2.0, dt); float dt_3 = pow(3.0, dt); float dt_4 = pow(4.0, dt);
Hi Linas -
You need to use the appropriate ordering for pow() - dt comes first, then the exponent, i.e. float dt_2 = pow(dt, 2.0);
pow()
dt
float dt_2 = pow(dt, 2.0);
Ah, my apologies. Good point.
// Accepted answer uses: float dt_2 = dt dt; float dt_3 = dt_2 dt; float dt_4 = dt_3 * dt;
// The following is not accepted
include
... float dt_2 = pow(2.0, dt); float dt_3 = pow(3.0, dt); float dt_4 = pow(4.0, dt);