Skip to content

Commit

Permalink
Added plot of equation
Browse files Browse the repository at this point in the history
Fixes #30
  • Loading branch information
sverhoeven committed Jun 9, 2020
1 parent 935240b commit 1cb6f61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions images/equation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1cb6f61

Please sign in to comment.