diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dacae0..5ca98e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -* C++ in SonarCloud analysis ([#73](https://github.com/NLESC-JCER/cpp2wasm/issues/73)) +* C++ in SonarCloud analysis ([#73](https://github.com/NLESC-JCER/cpp2wasm/issues/73)) +* Plot of equation ([#30](https://github.com/NLESC-JCER/cpp2wasm/issues/30)) ## [0.2.0] - 2020-06-09 diff --git a/README.md b/README.md index 81b2bcc..0ec40be 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,9 @@ The code we are using came from [geeksforgeeks.org](https://www.geeksforgeeks.or Let's first define the mathematical equation, which we will be searching for its root, and the derivative of it. The equation and its derivative which we will use in this guide are $x^3 - x^2 + 2$ and $3x^2 - 2x$ respectively. +The root is the X-coordinate you must put in the equation to get `0` as Y-coordinate. In this equation the root is `-1`. + +[![Plotted equation](images/equation.svg)](https://www.desmos.com/calculator/yj0ih4ml0i) ```{.hpp file=src/algebra.hpp} // this C++ code snippet is store as src/algebra.hpp diff --git a/images/equation.svg b/images/equation.svg new file mode 100644 index 0000000..f719e9f --- /dev/null +++ b/images/equation.svg @@ -0,0 +1 @@ +Y axisX axis00-4-4-2-22244-2-222Expression 1 \ No newline at end of file