10c0288a2SKonstantin Belousov.\" Copyright (c) 2017 Steven G. Kargl <kargl@FreeBSD.org> 20c0288a2SKonstantin Belousov.\" All rights reserved. 30c0288a2SKonstantin Belousov.\" 40c0288a2SKonstantin Belousov.\" Redistribution and use in source and binary forms, with or without 50c0288a2SKonstantin Belousov.\" modification, are permitted provided that the following conditions 60c0288a2SKonstantin Belousov.\" are met: 70c0288a2SKonstantin Belousov.\" 1. Redistributions of source code must retain the above copyright 80c0288a2SKonstantin Belousov.\" notice, this list of conditions and the following disclaimer. 90c0288a2SKonstantin Belousov.\" 2. Redistributions in binary form must reproduce the above copyright 100c0288a2SKonstantin Belousov.\" notice, this list of conditions and the following disclaimer in the 110c0288a2SKonstantin Belousov.\" documentation and/or other materials provided with the distribution. 120c0288a2SKonstantin Belousov.\" 130c0288a2SKonstantin Belousov.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 140c0288a2SKonstantin Belousov.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 150c0288a2SKonstantin Belousov.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 160c0288a2SKonstantin Belousov.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 170c0288a2SKonstantin Belousov.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 180c0288a2SKonstantin Belousov.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 190c0288a2SKonstantin Belousov.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 200c0288a2SKonstantin Belousov.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 210c0288a2SKonstantin Belousov.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 220c0288a2SKonstantin Belousov.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 230c0288a2SKonstantin Belousov.\" SUCH DAMAGE. 240c0288a2SKonstantin Belousov.\" 25bc5356c5SConrad Meyer.Dd June 6, 2018 260c0288a2SKonstantin Belousov.Dt CLOG 3 270c0288a2SKonstantin Belousov.Os 280c0288a2SKonstantin Belousov.Sh NAME 290c0288a2SKonstantin Belousov.Nm clog , 30*a52f4499SGordon Bergling.Nm clogf 310c0288a2SKonstantin Belousovand 320c0288a2SKonstantin Belousov.Nm clogl 33bc5356c5SConrad Meyer.Nd complex natural logarithm functions 340c0288a2SKonstantin Belousov.Sh LIBRARY 350c0288a2SKonstantin Belousov.Lb libm 360c0288a2SKonstantin Belousov.Sh SYNOPSIS 370c0288a2SKonstantin Belousov.In complex.h 380c0288a2SKonstantin Belousov.Ft double complex 390c0288a2SKonstantin Belousov.Fn clog "double complex z" 400c0288a2SKonstantin Belousov.Ft float complex 410c0288a2SKonstantin Belousov.Fn clogf "float complex z" 420c0288a2SKonstantin Belousov.Ft long double complex 430c0288a2SKonstantin Belousov.Fn clogl "long double complex z" 440c0288a2SKonstantin Belousov.Sh DESCRIPTION 450c0288a2SKonstantin BelousovThe 460c0288a2SKonstantin Belousov.Fn clog , 470c0288a2SKonstantin Belousov.Fn clogf , 480c0288a2SKonstantin Belousovand 490c0288a2SKonstantin Belousov.Fn clogl 50bc5356c5SConrad Meyerfunctions compute the complex natural logarithm of 510c0288a2SKonstantin Belousov.Fa z . 520c0288a2SKonstantin Belousovwith a branch cut along the negative real axis . 530c0288a2SKonstantin Belousov.Sh RETURN VALUES 540c0288a2SKonstantin BelousovThe 550c0288a2SKonstantin Belousov.Fn clog 560c0288a2SKonstantin Belousovfunction returns the complex natural logarithm value, in the 570c0288a2SKonstantin Belousovrange of a strip mathematically unbounded along the real axis and in 580c0288a2SKonstantin Belousovthe interval [-I* \*(Pi , +I* \*(Pi ] along the imaginary axis. 590c0288a2SKonstantin BelousovThe function satisfies the relationship: 600c0288a2SKonstantin Belousov.Fo clog 610c0288a2SKonstantin Belousov.Fn conj "z" Fc 620c0288a2SKonstantin Belousov= 630c0288a2SKonstantin Belousov.Fo conj 640c0288a2SKonstantin Belousov.Fn clog "z" Fc . 650c0288a2SKonstantin Belousov.Pp 660c0288a2SKonstantin Belousov.\" Table is formatted for an 80-column xterm. 670c0288a2SKonstantin Belousov.Bl -column ".Sy +\*(If + I*\*(Na" ".Sy Return value" ".Sy Divide-by-zero exception" 680c0288a2SKonstantin Belousov.It Sy Argument Ta Sy Return value Ta Sy Comment 690c0288a2SKonstantin Belousov.It -0 + I*0 Ta -\*(If + I*\*(Pi Ta Divide-by-zero exception 700c0288a2SKonstantin Belousov.It Ta Ta raised 710c0288a2SKonstantin Belousov.It +0 + I*0 Ta -\*(If + I*0 Ta Divide by zero exception 720c0288a2SKonstantin Belousov.It Ta Ta raised 730c0288a2SKonstantin Belousov.It x + I*\*(If Ta +\*(If + I*\*(Pi/2 Ta For finite x 740c0288a2SKonstantin Belousov.It x + I*\*(Na Ta \*(Na + I*\*(Na Ta Optionally raises invalid 750c0288a2SKonstantin Belousov.It Ta Ta floating-point exception 760c0288a2SKonstantin Belousov.It Ta Ta for finite x 770c0288a2SKonstantin Belousov.It -\*(If + I*y Ta +\*(If + I*\*(Pi Ta For finite positive-signed y 780c0288a2SKonstantin Belousov.It +\*(If + I*y Ta +\*(If + I*0 Ta For finite positive-signed y 790c0288a2SKonstantin Belousov.It -\*(If + I*\*(If Ta +\*(If + I*3\*(Pi/4 800c0288a2SKonstantin Belousov.It +\*(If + I*\*(If Ta +\*(If + I*\*(Pi/4 810c0288a2SKonstantin Belousov.It \*(Pm\*(If + I*\*(Na Ta +\*(If + I*\*(Na 820c0288a2SKonstantin Belousov.It \*(Na + I*y Ta \*(Na + I*\*(Na Ta Optionally raises invalid 830c0288a2SKonstantin Belousov.It Ta Ta floating-point exception 840c0288a2SKonstantin Belousov.It Ta Ta for finite y 850c0288a2SKonstantin Belousov.It \*(Na + I*\*(If Ta +\*(If + I*\*(Na 860c0288a2SKonstantin Belousov.It \*(Na + I*\*(Na Ta \*(Na + I*\*(Na 870c0288a2SKonstantin Belousov.El 880c0288a2SKonstantin Belousov.Sh SEE ALSO 890c0288a2SKonstantin Belousov.Xr complex 3 , 900c0288a2SKonstantin Belousov.Xr log 3 , 910c0288a2SKonstantin Belousov.Xr math 3 920c0288a2SKonstantin Belousov.Sh STANDARDS 930c0288a2SKonstantin BelousovThe 940c0288a2SKonstantin Belousov.Fn clog , 950c0288a2SKonstantin Belousov.Fn cexpf , 960c0288a2SKonstantin Belousovand 970c0288a2SKonstantin Belousov.Fn clogl 980c0288a2SKonstantin Belousovfunctions conform to 990c0288a2SKonstantin Belousov.St -isoC-99 . 100