higher degree functions

Let's now make a function that accelerates as it progresses. This is called a quadratic function, and that's because the independent variable has a power of 2.

float move(float x) {
  return (0.1 * pow(x, 2) + 10);

We can push this further and use a cubic function, which will accelerate even faster.

Math For Artists Who Now Need to Program

Elie Zananiri
ITP DriveBy
1 Oct 2008