diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dacae0..c640ee3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,13 @@ 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)) + +### Fixed + +- Use fabs instead of abs to fix tolerance issue ([#79](https://github.com/NLESC-JCER/cpp2wasm/pull/79)) +- Precision of the result ([#79](https://github.com/NLESC-JCER/cpp2wasm/pull/79)) ## [0.2.0] - 2020-06-09 diff --git a/README.md b/README.md index 81b2bcc..33a3985 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 value (X-coordinate) which makes the mathematical function (Y-coordinate) equal to `0`. In this equation the root is `-1`. + +[![Plotted equation](images/equation.svg)](https://www.wolframalpha.com/input/?i=x%5E3+-+x%5E2+%2B+2) ```{.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