Skip to content

Instantly share code, notes, and snippets.

@sverhoeven
Created October 2, 2020 08:16
Show Gist options
  • Select an option

  • Save sverhoeven/32f783a3c64527ff8296b3acf0d94a42 to your computer and use it in GitHub Desktop.

Select an option

Save sverhoeven/32f783a3c64527ff8296b3acf0d94a42 to your computer and use it in GitHub Desktop.
run-cpp-on-web: webassembly
// An example equation
float equation(float x) {
return 2 * x * x * x - 4 * x * x + 6;
}
// Derivative of the above equation
float derivative(float x) {
return 6 * x * x - 8 * x;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment