Created
October 7, 2020 11:51
-
-
Save sverhoeven/69dc6e4d8b60b59fb569d3f202a77055 to your computer and use it in GitHub Desktop.
run-cpp-on-web: webassembly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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