Opened 7 years ago
Closed 5 years ago
#12089 closed Bugs (fixed)
Documentation: units: Errors in Why Homogeneous Systems
Reported by: | 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:
- It won't compile because asin does not take an angle.
- 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)
Change History (2)
by , 7 years ago
Attachment: | 0001-Fix-Errors-in-Why-Homogeneous-Systems.patch added |
---|
Note:
See TracTickets
for help on using tickets.
Patch