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

Factorization of rational functions #380

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

Some functions use the same rational functions. For example, erfinv and erfcinv both use the same rational_p1q1, albeit through duplicate auto-generated folders. But besselj uses a totally different yet homonymous rational_p1q1. Shouldn't these homonymous functions be named differently so that factorization could be implemented in a robust fashion in the reference codebase? Or are there complex build-time mechanisms upstream that already take care of this?

You must be logged in to vote

Using different names is unnecessary, as their usage is scoped to the relative module scope. Should these functions need to be present in the same namespace, similar to a C compiler, one can rename symbols when inserting into a common namespace. We do this already when generating "flat" bundles in which all functions exist in the same top-level scope.

Replies: 1 comment

Comment options

Using different names is unnecessary, as their usage is scoped to the relative module scope. Should these functions need to be present in the same namespace, similar to a C compiler, one can rename symbols when inserting into a common namespace. We do this already when generating "flat" bundles in which all functions exist in the same top-level scope.

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

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