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.expf #164

Closed
Konstantin8105 opened this issue Oct 2, 2018 · 0 comments
Closed

math.expf #164

Konstantin8105 opened this issue Oct 2, 2018 · 0 comments

Comments

@Konstantin8105
Copy link
Owner

Add test and implementation on Go for function math.h expf
Description: https://en.cppreference.com/w/c/numeric/math/exp
File for test code add : c4go/tests/math.c
Example see #155
Example of test, see

c4go/tests/math.c

Lines 218 to 230 in be1760b

diag("exp");
is_eq(exp(0), 1);
is_eq(exp(1), 2.7182818284590450908);
is_eq(exp(-1), 0.36787944117144233402);
is_eq(exp(0.5), 1.6487212707001281942);
// https://github.com/golang/go/issues/20539
disabled(is_inf(exp(1.23e300), 1));
is_eq(exp(-1.23e-300), 1);
is_eq(exp(M_PI), 23.140692632779266802);
is_eq(exp(M_E), 15.154262241479262485);
is_inf(exp(INFINITY), 1);
is_eq(exp(-INFINITY), 0);
is_nan(exp(NAN));

@Konstantin8105 Konstantin8105 added the hacktoberfest https://hacktoberfest.digitalocean.com/ label Oct 2, 2018
Konstantin8105 pushed a commit that referenced this issue Oct 2, 2018
* Add string.Memcmp

* Update test for string.Memcmp

* Updated function_definition

* Formatting Issue Fixed

* Added 1 func

* Added log1p

* Added log1p fix

* Increase test count in math.c

* Fixed CSTD test

* Added expf, expl, copysign*

* Error Fix
@Konstantin8105 Konstantin8105 removed hacktoberfest https://hacktoberfest.digitalocean.com/ labels Oct 5, 2018
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

No branches or pull requests

1 participant