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

math::nolibc: atanh #1730

Merged

Conversation

MendocinoWhiteDeer
Copy link
Contributor

@MendocinoWhiteDeer MendocinoWhiteDeer commented Dec 28, 2024

Added atanh nolibc definitions (not to be confused with atan!) and more atanh test points in the math_tests module. atanh relies on log1p, which was also defined. These definitions were translated from FreeBSD (see here) and musl (see here).

If anybody would like to verify that these nolibc functions are correct, you can do so in a libc environment with the feature C3_MATH. This replaces libc definitions with nolibc definitions when they exist and defaults to libc when they don't. If anybody wants to test the authenticity of these functions run

c3c compile-test -D C3_MATH test/unit/stdlib/math/math.c3

Added atanh nolibc definition and more test points in the math_tests
module.
@lerno lerno merged commit 53bada2 into c3lang:master Dec 28, 2024
35 checks passed
@lerno
Copy link
Collaborator

lerno commented Dec 28, 2024

Thank you!

@MendocinoWhiteDeer MendocinoWhiteDeer deleted the nolibc-inverse-hyperbolic-trig branch December 28, 2024 21:59
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

Successfully merging this pull request may close these issues.

2 participants