Skip to content

Special functions for expression evaluations #379

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

You must be logged in to vote

exprtk could be useful as part of a CAS; however, in terms of reducing the number of AST nodes for purposes of perf improvements, this is not always desirable, as these optimizations may lead to accuracy degradations. Given IEEE 754 floating-point format, operations which are theoretically commutative are not always commutative in practice. So anything which performs simplifications, reorderings, etc, may violate an algorithm's assumptions and result in decreased accuracy. It is not uncommon for transcendental function algorithms to assume (and exploit) certain properties of IEEE 754 to achieve results to a desired precision.

This should also be a more general warning when translating/por…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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