1*86f9d4cdStedu.\" $OpenBSD: clog.3,v 1.2 2013/06/05 03:40:26 tedu Exp $ 22bfdbafeSmartynas.\" 32bfdbafeSmartynas.\" Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org> 42bfdbafeSmartynas.\" 52bfdbafeSmartynas.\" Permission to use, copy, modify, and distribute this software for any 62bfdbafeSmartynas.\" purpose with or without fee is hereby granted, provided that the above 72bfdbafeSmartynas.\" copyright notice and this permission notice appear in all copies. 82bfdbafeSmartynas.\" 92bfdbafeSmartynas.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 102bfdbafeSmartynas.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 112bfdbafeSmartynas.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 122bfdbafeSmartynas.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 132bfdbafeSmartynas.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 142bfdbafeSmartynas.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 152bfdbafeSmartynas.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 162bfdbafeSmartynas.\" 17*86f9d4cdStedu.Dd $Mdocdate: June 5 2013 $ 182bfdbafeSmartynas.Dt CLOG 3 192bfdbafeSmartynas.Os 202bfdbafeSmartynas.Sh NAME 212bfdbafeSmartynas.Nm clog , 222bfdbafeSmartynas.Nm clogf , 232bfdbafeSmartynas.Nm clogl 242bfdbafeSmartynas.Nd complex natural logarithm 252bfdbafeSmartynas.Sh SYNOPSIS 26*86f9d4cdStedu.In complex.h 272bfdbafeSmartynas.Ft double complex 282bfdbafeSmartynas.Fn clog "double complex z" 292bfdbafeSmartynas.Ft float complex 302bfdbafeSmartynas.Fn clogf "float complex z" 312bfdbafeSmartynas.Ft long double complex 322bfdbafeSmartynas.Fn clogl "long double complex z" 332bfdbafeSmartynas.Sh DESCRIPTION 342bfdbafeSmartynasThe 352bfdbafeSmartynas.Fn clog , 362bfdbafeSmartynas.Fn clogf 372bfdbafeSmartynasand 382bfdbafeSmartynas.Fn clogl 392bfdbafeSmartynasfunctions compute the complex logarithm to the base 402bfdbafeSmartynas.Ms e 412bfdbafeSmartynas(2.718...) of 422bfdbafeSmartynas.Fa z . 432bfdbafeSmartynas.Pp 442bfdbafeSmartynasIf 452bfdbafeSmartynas.Fa z 462bfdbafeSmartynas= x + iy, then 472bfdbafeSmartynas.Bd -literal -offset indent 482bfdbafeSmartynasclog(z) = log(sqrt(x^2 + y^2)) + i atan(y / x). 492bfdbafeSmartynas.Ed 502bfdbafeSmartynas.Sh RETURN VALUES 512bfdbafeSmartynasThe 522bfdbafeSmartynas.Fn clog , 532bfdbafeSmartynas.Fn clogf 542bfdbafeSmartynasand 552bfdbafeSmartynas.Fn clogl 562bfdbafeSmartynasfunctions return the complex logarithm to the base 572bfdbafeSmartynas.Ms e 582bfdbafeSmartynasof 592bfdbafeSmartynas.Fa z 602bfdbafeSmartynaswith imaginary part in the interval 612bfdbafeSmartynas.Bq -Pi, Pi , 622bfdbafeSmartynasand unbounded real part. 632bfdbafeSmartynas.Sh SEE ALSO 642bfdbafeSmartynas.Xr cexp 3 , 652bfdbafeSmartynas.Xr cpow 3 662bfdbafeSmartynas.Sh STANDARDS 672bfdbafeSmartynasThe 682bfdbafeSmartynas.Fn clog , 692bfdbafeSmartynas.Fn clogf 702bfdbafeSmartynasand 712bfdbafeSmartynas.Fn clogl 722bfdbafeSmartynasfunctions conform to 732bfdbafeSmartynas.St -isoC-99 . 74