diff options
author | kripken <alonzakai@gmail.com> | 2011-07-13 17:19:19 -0700 |
---|---|---|
committer | kripken <alonzakai@gmail.com> | 2011-07-13 17:19:19 -0700 |
commit | efbf009d0d40443c74cdef9c47e1e54206629e8d (patch) | |
tree | c485f2bee422bc5a274f94f4652c54360966cbc4 /tests/hyperbolic/src.c | |
parent | dc24fffc94606ccb566a3e6bb8dae5543f1ab790 (diff) | |
parent | 3c07ebaefda5c70d5014ceaa5d7cf2a3e65e9316 (diff) |
Merge pull request #52 from max99x/master
Minor improvements: Pyhon 2.6- compatibility; hyperbolic math functions
Diffstat (limited to 'tests/hyperbolic/src.c')
-rw-r--r-- | tests/hyperbolic/src.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/hyperbolic/src.c b/tests/hyperbolic/src.c new file mode 100644 index 00000000..4644f2d3 --- /dev/null +++ b/tests/hyperbolic/src.c @@ -0,0 +1,17 @@ +#include <stdio.h> +#include <math.h> + +int main() { + double i; + for (i = -10; i < 10; i += 0.125) { + printf("i: %g\n", i); + printf("sinh: %g\n", sinh(i)); + printf("cosh: %g\n", cosh(i)); + printf("tanh: %g\n", tanh(i)); + printf("asinh: %g\n", asinh(i)); + printf("acosh: %g\n", acosh(i)); + printf("atanh: %g\n", atanh(i)); + printf("\n"); + } + return 0; +} |