Skip to content

Commit

Permalink
Update example for (**) (#7148)
Browse files Browse the repository at this point in the history
The chosen example happened to work for at least three well known functions with the given arguments, `(+)`, `(*)` and `(**)`. Making the example a little less ambiguous.
  • Loading branch information
axman6 authored Aug 17, 2020
1 parent 2887c30 commit ceeec38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/damlc/daml-stdlib-src/DA/Math.daml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import DA.Numeric (pi)

infixr 8 **

-- | Take a power of a number Example: `2.0 ** 2.0 == 4.0`.
-- | Take a power of a number Example: `2.0 ** 3.0 == 8.0`.
(**) : Decimal -> Decimal -> Decimal
x ** y = exp (y * log x)

Expand Down

0 comments on commit ceeec38

Please sign in to comment.