Created
October 2, 2020 08:16
-
-
Save sverhoeven/32f783a3c64527ff8296b3acf0d94a42 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