annotate lib/coshf.c @ 17616:cae23a655793

autoupdate
author Karl Berry <karl@freefriends.org>
date Sat, 25 Jan 2014 06:40:43 -0800
parents 344018b6e5d7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15896
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Hyperbolic cosine function.
17587
344018b6e5d7 maint: update copyright
Eric Blake <eblake@redhat.com>
parents: 17249
diff changeset
2 Copyright (C) 2011-2014 Free Software Foundation, Inc.
15896
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 #include <config.h>
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 /* Specification. */
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #include <math.h>
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 float
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 coshf (float x)
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 {
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 return (float) cosh ((double) x);
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 }