|
What is the rationale for including esoteric yet rather basic trigonometry functions like Arcversine? These functions have the exact same implementation as one would write directly, therefore performance cannot be the motivation. Is it just a pure convenience? |
Answered by
kgryte
Feb 21, 2021
Replies: 1 comment 1 reply
|
The motivation is straightforward: to name common mathematical expressions. That they are currently implemented according to textbook definitions (in most cases) is an implementation detail subject to change. For example, the error functions are an example where implementations do not follow textbook formulas. In the function, we may update the implementations for better accuracy, perf, or a combination of both, depending on time and funding. |
1 reply
Answer selected by
kgryte
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The motivation is straightforward: to name common mathematical expressions. That they are currently implemented according to textbook definitions (in most cases) is an implementation detail subject to change. For example, the error functions are an example where implementations do not follow textbook formulas. In the function, we may update the implementations for better accuracy, perf, or a combination of both, depending on time and funding.