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

feat: add C implementation for math/base/special/fast/atanh #1909

Merged
merged 10 commits into from
Mar 17, 2024
Prev Previous commit
Next Next commit
Update example.c
Signed-off-by: Rejoan Sardar <[email protected]>
Rejoan-Sardar authored Mar 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 9ff041223fe9565afe639c27da91b5396b34e9db
Original file line number Diff line number Diff line change
@@ -20,12 +20,12 @@
#include <stdio.h>

int main( void ) {
const double x[] = { 1.0, 1.45, 1.89, 2.33, 2.78, 3.22, 3.66, 4.11, 4.55, 5.0 };
const double x[] = { -1.0, -0.78, -0.56, -0.33, -0.11, 0.11, 0.33, 0.56, 0.78, 1.0 };

double v;
int i;
for ( i = 0; i < 10; i++ ) {
v = stdlib_base_fast_atanh( x[ i ] );
printf( "atanh(%lf) = %lf\n", x[ i ], v );
}
double v;
int i;
for ( i = 0; i < 10; i++ ) {
v = stdlib_base_fast_atanh( x[ i ] );
printf( "atanh(%lf) = %lf\n", x[ i ], v );
}
}