diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libm/src/s_cacoshl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libm/src/s_cacoshl.c b/lib/libm/src/s_cacoshl.c index 67a2362c273..39ac1db9f2f 100644 --- a/lib/libm/src/s_cacoshl.c +++ b/lib/libm/src/s_cacoshl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_cacoshl.c,v 1.1 2011/07/08 19:25:31 martynas Exp $ */ +/* $OpenBSD: s_cacoshl.c,v 1.2 2015/07/16 13:42:06 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> @@ -51,6 +51,6 @@ cacoshl(long double complex z) { long double complex w; - w = I * cacosl(z); + w = clogl(z + csqrtl(z + 1) * csqrtl(z - 1)); return (w); } |