Skip to content

Instantly share code, notes, and snippets.

@sverhoeven
Created October 7, 2020 11:51
Show Gist options
  • Save sverhoeven/69dc6e4d8b60b59fb569d3f202a77055 to your computer and use it in GitHub Desktop.
Save sverhoeven/69dc6e4d8b60b59fb569d3f202a77055 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