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.\" 250c0288a2SKonstantin Belousov.\" $FreeBSD$ 260c0288a2SKonstantin Belousov.\" 27*bc5356c5SConrad Meyer.Dd June 6, 2018 280c0288a2SKonstantin Belousov.Dt CLOG 3 290c0288a2SKonstantin Belousov.Os 300c0288a2SKonstantin Belousov.Sh NAME 310c0288a2SKonstantin Belousov.Nm clog , 320c0288a2SKonstantin Belousov.Nm clogf , 330c0288a2SKonstantin Belousovand 340c0288a2SKonstantin Belousov.Nm clogl 35*bc5356c5SConrad Meyer.Nd complex natural logarithm functions 360c0288a2SKonstantin Belousov.Sh LIBRARY 370c0288a2SKonstantin Belousov.Lb libm 380c0288a2SKonstantin Belousov.Sh SYNOPSIS 390c0288a2SKonstantin Belousov.In complex.h 400c0288a2SKonstantin Belousov.Ft double complex 410c0288a2SKonstantin Belousov.Fn clog "double complex z" 420c0288a2SKonstantin Belousov.Ft float complex 430c0288a2SKonstantin Belousov.Fn clogf "float complex z" 440c0288a2SKonstantin Belousov.Ft long double complex 450c0288a2SKonstantin Belousov.Fn clogl "long double complex z" 460c0288a2SKonstantin Belousov.Sh DESCRIPTION 470c0288a2SKonstantin BelousovThe 480c0288a2SKonstantin Belousov.Fn clog , 490c0288a2SKonstantin Belousov.Fn clogf , 500c0288a2SKonstantin Belousovand 510c0288a2SKonstantin Belousov.Fn clogl 52*bc5356c5SConrad Meyerfunctions compute the complex natural logarithm of 530c0288a2SKonstantin Belousov.Fa z . 540c0288a2SKonstantin Belousovwith a branch cut along the negative real axis . 550c0288a2SKonstantin Belousov.Sh RETURN VALUES 560c0288a2SKonstantin BelousovThe 570c0288a2SKonstantin Belousov.Fn clog 580c0288a2SKonstantin Belousovfunction returns the complex natural logarithm value, in the 590c0288a2SKonstantin Belousovrange of a strip mathematically unbounded along the real axis and in 600c0288a2SKonstantin Belousovthe interval [-I* \*(Pi , +I* \*(Pi ] along the imaginary axis. 610c0288a2SKonstantin BelousovThe function satisfies the relationship: 620c0288a2SKonstantin Belousov.Fo clog 630c0288a2SKonstantin Belousov.Fn conj "z" Fc 640c0288a2SKonstantin Belousov= 650c0288a2SKonstantin Belousov.Fo conj 660c0288a2SKonstantin Belousov.Fn clog "z" Fc . 670c0288a2SKonstantin Belousov.Pp 680c0288a2SKonstantin Belousov.\" Table is formatted for an 80-column xterm. 690c0288a2SKonstantin Belousov.Bl -column ".Sy +\*(If + I*\*(Na" ".Sy Return value" ".Sy Divide-by-zero exception" 700c0288a2SKonstantin Belousov.It Sy Argument Ta Sy Return value Ta Sy Comment 710c0288a2SKonstantin Belousov.It -0 + I*0 Ta -\*(If + I*\*(Pi Ta Divide-by-zero exception 720c0288a2SKonstantin Belousov.It Ta Ta raised 730c0288a2SKonstantin Belousov.It +0 + I*0 Ta -\*(If + I*0 Ta Divide by zero exception 740c0288a2SKonstantin Belousov.It Ta Ta raised 750c0288a2SKonstantin Belousov.It x + I*\*(If Ta +\*(If + I*\*(Pi/2 Ta For finite x 760c0288a2SKonstantin Belousov.It x + I*\*(Na Ta \*(Na + I*\*(Na Ta Optionally raises invalid 770c0288a2SKonstantin Belousov.It Ta Ta floating-point exception 780c0288a2SKonstantin Belousov.It Ta Ta for finite x 790c0288a2SKonstantin Belousov.It -\*(If + I*y Ta +\*(If + I*\*(Pi Ta For finite positive-signed y 800c0288a2SKonstantin Belousov.It +\*(If + I*y Ta +\*(If + I*0 Ta For finite positive-signed y 810c0288a2SKonstantin Belousov.It -\*(If + I*\*(If Ta +\*(If + I*3\*(Pi/4 820c0288a2SKonstantin Belousov.It +\*(If + I*\*(If Ta +\*(If + I*\*(Pi/4 830c0288a2SKonstantin Belousov.It \*(Pm\*(If + I*\*(Na Ta +\*(If + I*\*(Na 840c0288a2SKonstantin Belousov.It \*(Na + I*y Ta \*(Na + I*\*(Na Ta Optionally raises invalid 850c0288a2SKonstantin Belousov.It Ta Ta floating-point exception 860c0288a2SKonstantin Belousov.It Ta Ta for finite y 870c0288a2SKonstantin Belousov.It \*(Na + I*\*(If Ta +\*(If + I*\*(Na 880c0288a2SKonstantin Belousov.It \*(Na + I*\*(Na Ta \*(Na + I*\*(Na 890c0288a2SKonstantin Belousov.El 900c0288a2SKonstantin Belousov.Sh SEE ALSO 910c0288a2SKonstantin Belousov.Xr complex 3 , 920c0288a2SKonstantin Belousov.Xr log 3 , 930c0288a2SKonstantin Belousov.Xr math 3 940c0288a2SKonstantin Belousov.Sh STANDARDS 950c0288a2SKonstantin BelousovThe 960c0288a2SKonstantin Belousov.Fn clog , 970c0288a2SKonstantin Belousov.Fn cexpf , 980c0288a2SKonstantin Belousovand 990c0288a2SKonstantin Belousov.Fn clogl 1000c0288a2SKonstantin Belousovfunctions conform to 1010c0288a2SKonstantin Belousov.St -isoC-99 . 102