Opened 2 years ago

Closed 7 months 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:


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@…> 2 years ago.

Download all attachments as: .zip

Change History (2)

Changed 2 years ago by Chris Lesiak <chris.lesiak@…>


comment:1 Changed 7 months ago by Jürgen Hunold

Resolution: fixed
Status: newclosed

Thanks for the patch.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Matthias Schabel.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.