Opened 7 years ago

Closed 5 years ago

#12089 closed Bugs (fixed)

Documentation: units: Errors in Why Homogeneous Systems

Reported by: Chris Lesiak <chris.lesiak@…> Owned by: Matthias Schabel
Milestone: To Be Determined Component: units
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

The FAQ entry on homogeneous systems asks the reader to consider the following:

cout << sin(asin(180.0 * degrees));

There are two problems with this:

  1. It won't compile because asin does not take an angle.
  2. Even with the order of asin and sin swapped, the example is confusing because it isn't clear if the results should be 180 degrees, or 0 degrees. Better to use 90 degrees.

Attachments (1)

0001-Fix-Errors-in-Why-Homogeneous-Systems.patch (1.4 KB ) - added by Chris Lesiak <chris.lesiak@…> 7 years ago.
Patch

Download all attachments as: .zip

Change History (2)

by Chris Lesiak <chris.lesiak@…>, 7 years ago

Patch

comment:1 by Jürgen Hunold, 5 years ago

Resolution: fixed
Status: newclosed

Thanks for the patch.

Note: See TracTickets for help on using tickets.