Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rationale for esoteric trigonometry functions #376

Answered by kgryte
ghalimi asked this question in Q&A
Discussion options

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?

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

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.

You must be logged in to vote
1 reply
Comment options

That makes sense. Thank you.

Answer selected by kgryte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Question General question. Math Issue or pull request specific to math functionality.
2 participants

AltStyle によって変換されたページ (->オリジナル) /