mirror of
https://github.com/boostorg/units.git
synced 2026-01-19 04:42:15 +00:00
b0b9c51646844df012dcfe91063d2de0aa93e506
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.
Improve the explanation by swapping sin and asin and using 90 degrees.
Boost.Units
Boost.Units, part of collection of the Boost C++ Libraries, implements dimensional analysis in a general and extensible manner, treating it as a generic compile-time metaprogramming problem. With appropriate compiler optimization, no runtime execution cost is introduced, facilitating the use of this library to provide dimension checking in performance-critical code.
Directories
- doc - QuickBook documentation sources
- example - examples
- images - images for documention
- include - Interface headers
- test - unit tests
- test_headers - unit tests for self containment of headers
- tutorial - tutorial
Test results
| @ | Travis | AppVeyor |
|---|---|---|
| master | ||
| develop |
More information
License
Distributed under the Boost Software License, Version 1.0.
Description
Languages
C++
99.6%
Shell
0.1%