Skip to content

Commit

Permalink
User guide typos
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbert committed Aug 8, 2024
1 parent a0065b9 commit c7250ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/site/apt/userguide/index.apt
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ z.doubleValue() // = 1.0
For summation of terms of the same sign a very large number of operations would be required to
observe a 1 ULP error in the final <<<double>>> result. If terms of the opposite sign are
summed then smaller magnitude intermediate terms can be lost due to the limited 106-bit
precision. In this case almost total cancellation will product the incorrect result.
precision. In this case almost total cancellation will produce the incorrect result.

+------------------------------------------+
double a = 1;
Expand All @@ -698,7 +698,7 @@ DD.of(a).add(b).add(c).subtract(c).subtract(b) // (0, 0)
The purpose is to supplement the arithmetic operations in the <<<DD>>> class providing
greater accuracy at the cost of performance.
This includes a power function that returns the result in a fractional representation
to avoid over or underflow, with a lower error bound that the equivalent function in <<<DD>>>.
to avoid over or underflow, with a lower error bound than the equivalent function in <<<DD>>>.

** Overflow and underflow

Expand Down

0 comments on commit c7250ae

Please sign in to comment.