Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arguments of hyperbolic functions should not be angles. #285

Open
nholthaus-units-user opened this issue Mar 5, 2022 · 0 comments
Open

Comments

@nholthaus-units-user
Copy link

nholthaus-units-user commented Mar 5, 2022

I am using the units.h file as of commit ea6d126. The issue described below can be reproduced using gcc-11.2.0 (and probably using any other C++14 compiler).

The hyperbolic functions in units.h (such as units::math::cosh(), for example) require that their arguments be in units of angles. However, this does not appear to be correct. Unlike trigonometric functions, arguments of hyperbolic functions are dimensionless real numbers. Compare the behaviors of std::cos() and std::cosh(), for example.

From Wikipedia:

The hyperbolic functions take a real argument called a hyperbolic angle...

In geometric applications, the argument of a trigonometric function is generally the measure of an angle. For this purpose, any angular unit is convenient, and angles are most commonly measured in conventional units of degrees in which a right angle is 90° and a complete turn is 360° (particularly in elementary mathematics).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant