Skip to content

Commit 9d4d1bc

Browse files
authored
Merge pull request #78 from NLESC-JCER/30-equation-plot
Added plot of equation
2 parents 86c0c4d + eee0b1c commit 9d4d1bc

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12-
* C++ in SonarCloud analysis ([#73](https://github.com/NLESC-JCER/cpp2wasm/issues/73))
12+
* C++ in SonarCloud analysis ([#73](https://github.com/NLESC-JCER/cpp2wasm/issues/73))
13+
* Plot of equation ([#30](https://github.com/NLESC-JCER/cpp2wasm/issues/30))
14+
15+
### Fixed
16+
17+
- Use fabs instead of abs to fix tolerance issue ([#79](https://github.com/NLESC-JCER/cpp2wasm/pull/79))
18+
- Precision of the result ([#79](https://github.com/NLESC-JCER/cpp2wasm/pull/79))
1319

1420
## [0.2.0] - 2020-06-09
1521

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ The code we are using came from [geeksforgeeks.org](https://www.geeksforgeeks.or
3838
Let's first define the mathematical equation, which we will be searching for its root, and the derivative of it.
3939

4040
The equation and its derivative which we will use in this guide are $x^3 - x^2 + 2$ and $3x^2 - 2x$ respectively.
41+
The root is the value (X-coordinate) which makes the mathematical function (Y-coordinate) equal to `0`. In this equation the root is `-1`.
42+
43+
[![Plotted equation](images/equation.svg)](https://www.wolframalpha.com/input/?i=x%5E3+-+x%5E2+%2B+2)
4144

4245
```{.hpp file=src/algebra.hpp}
4346
// this C++ code snippet is store as src/algebra.hpp

images/equation.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)