Skip to content

Commit

Permalink
[backport] doc/tut3.rst: Fix typo in Introduction (nim-lang#12607) [c…
Browse files Browse the repository at this point in the history
…i skip]

Derivative of `b*pow(x, 2)` is `2*b*x`, while old version had `2*a*x`
  • Loading branch information
torarvid authored and kiyolee committed Nov 7, 2019
1 parent 2b9f36b commit 5cd25c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tut3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Examples of things that can be implemented in macros:

* Symbolic differentiation of an expression.
``diff(a*pow(x,3) + b*pow(x,2) + c*x + d, x)`` is converted to
``3*a*pow(x,2) + 2*a*x + c``
``3*a*pow(x,2) + 2*b*x + c``


Macro Arguments
Expand Down

0 comments on commit 5cd25c3

Please sign in to comment.