Debian Bug report logs -
#326720
carg(3) man page error
Reported by: Ramiro Aceves <ea1abz@gmail.com>
Date: Mon, 5 Sep 2005 11:18:01 UTC
Severity: normal
Tags: fixed-upstream, patch
Found in version manpages-dev/1.70-1
Fixed in version 2.08-1
Done: Martin Schulze <joey@infodrom.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Martin Schulze <joey@debian.org>:
Bug#326720; Package manpages-dev.
(full text, mbox, link).
Acknowledgement sent to Ramiro Aceves <ea1abz@gmail.com>:
New Bug report received and forwarded. Copy sent to Martin Schulze <joey@debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: manpages-dev
Version: 1.70-1
There seems to be en error in carg(3) man page, DESCRIPTION chapter.
"One has carg(z) = atan(creal(z) / cimag(z))"
is wrong and should be :
"One has carg(z) = atan(cimag(z) / creal(z))"
Hope this helps.
Thank you very much.
Ramiro.
Information forwarded to debian-bugs-dist@lists.debian.org, Martin Schulze <joey@debian.org>:
Bug#326720; Package manpages-dev.
(full text, mbox, link).
Acknowledgement sent to "Michael Kerrisk" <mtk-manpages@gmx.net>:
Extra info received and forwarded to list. Copy sent to Martin Schulze <joey@debian.org>.
(full text, mbox, link).
Message #10 received at 326720@bugs.debian.org (full text, mbox, reply):
Andries,
Could you comment on the following please -- I don't remember
enough of my maths...
Cheers,
Michael
> --- Ursprüngliche Nachricht ---
> Von: Ramiro Aceves <ea1abz@gmail.com>
> An: submit@bugs.debian.org
> Betreff: Bug#326720: carg(3) man page error
> Datum: Mon, 05 Sep 2005 12:19:14 +0200
>
> Package: manpages-dev
> Version: 1.70-1
>
> There seems to be en error in carg(3) man page, DESCRIPTION chapter.
>
> "One has carg(z) = atan(creal(z) / cimag(z))"
>
> is wrong and should be :
>
> "One has carg(z) = atan(cimag(z) / creal(z))"
>
> Hope this helps.
>
> Thank you very much.
>
> Ramiro.
>
>
--
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7
Want to help with man page maintenance? Grab the latest
tarball at ftp://ftp.win.tue.nl/pub/linux-local/manpages/
and grep the source files for 'FIXME'.
Information forwarded to debian-bugs-dist@lists.debian.org, Martin Schulze <joey@debian.org>:
Bug#326720; Package manpages-dev.
(full text, mbox, link).
Acknowledgement sent to "Michael Kerrisk" <mtk-manpages@gmx.net>:
Extra info received and forwarded to list. Copy sent to Martin Schulze <joey@debian.org>.
(full text, mbox, link).
Message #15 received at 326720@bugs.debian.org (full text, mbox, reply):
tags 326720 fixed-upstream
thanks
Hello Ramiro,
[Original CC list restored...]
> > Andries,
> >
> > Could you comment on the following please -- I don't remember
> > enough of my maths...
> >
> > Cheers,
> >
> > Michael
>
>
> Hello Michael,
>
> I am Ramiro. Yes, a complex number z has got two componets: a real part
> (creal(z)) and an imaginary part (cimag(z)). I attach a home made ascii
> drawing.
>
>
>
> imaginary axis
> ^
> | >|
> | * |
> | * |
> | z * |
> | * |cimag(z)
> | * |
> | * |
> |* \ angle=carg(z) |
> |________|_____________________|_____________> real axis
> creal(z)
>
>
> Carg(z) is the angle between the complex number z and the real axis,
> measured counterclockwise.
>
> tan(angle)= cimag(z)/creal(z)
>
> angle=carg(z)= atan(cimag(z)/creal(z))
>
> Hope this helps.
Pictures always help :-).
When you put it like that, I'm convinced. I've changed the page
as you suggest. The change will appear in man-pages-2.08.
Cheers,
Michael
> >>--- Ursprüngliche Nachricht ---
> >>Von: Ramiro Aceves <ea1abz@gmail.com>
> >>An: submit@bugs.debian.org
> >>Betreff: Bug#326720: carg(3) man page error
> >>Datum: Mon, 05 Sep 2005 12:19:14 +0200
> >>
> >>Package: manpages-dev
> >>Version: 1.70-1
> >>
> >>There seems to be en error in carg(3) man page, DESCRIPTION chapter.
> >>
> >>"One has carg(z) = atan(creal(z) / cimag(z))"
> >>
> >> is wrong and should be :
> >>
> >>"One has carg(z) = atan(cimag(z) / creal(z))"
> >>
> >>Hope this helps.
> >>
> >>Thank you very much.
> >>
> >>Ramiro.
> >>
> >>
> >
> >
>
--
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7
Want to help with man page maintenance? Grab the latest
tarball at ftp://ftp.win.tue.nl/pub/linux-local/manpages/
and grep the source files for 'FIXME'.
Tags added: fixed-upstream
Request was from "Michael Kerrisk" <mtk-manpages@gmx.net>
to control@bugs.debian.org.
(full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Martin Schulze <joey@debian.org>:
Bug#326720; Package manpages-dev.
(full text, mbox, link).
Acknowledgement sent to Andries Brouwer <Andries.Brouwer@cwi.nl>:
Extra info received and forwarded to list. Copy sent to Martin Schulze <joey@debian.org>.
(full text, mbox, link).
Message #22 received at 326720@bugs.debian.org (full text, mbox, reply):
On Mon, Sep 19, 2005 at 02:04:00PM +0200, Michael Kerrisk wrote:
> Andries,
>
> Could you comment on the following please -- I don't remember
> enough of my maths...
>
> Cheers,
>
> Michael
Ramiro is right - that is, his text is much better than the
present text. However normalizations differ.
It is true that tan(carg(z)) = cimag(z) / creal(z),
almost by definition. Taking atan() on both sides yields
atan(tan(carg(z))) = atan(cimag(z) / creal(z))
but it is not precisely true that atan(tan(x)) = x.
The tan() function is periodic with period pi, and
atan() returns an answer in (-pi/2,pi/2], so atan(tan(x))
returns the value that is congruent x mod pi and lies in
this interval.
In particular, atan(tan(carg(z))) returns a value that
is congruent carg(z) mod pi and lies in (-pi/2,pi/2].
On the other hand, carg returns a value in [-pi,pi]
and if that return value does not lie in (-pi/2,pi/2]
then carg(z) and atan(cimag(z) / creal(z)) will differ by pi.
In other words: you may write
"One has tan(carg(z)) = cimag(z) / creal(z)."
Andries
>> Von: Ramiro Aceves <ea1abz@gmail.com>
>> An: submit@bugs.debian.org
>> Betreff: Bug#326720: carg(3) man page error
>> Datum: Mon, 05 Sep 2005 12:19:14 +0200
>>
>> Package: manpages-dev
>> Version: 1.70-1
>>
>> There seems to be en error in carg(3) man page, DESCRIPTION chapter.
>>
>> "One has carg(z) = atan(creal(z) / cimag(z))"
>>
>> is wrong and should be :
>>
>> "One has carg(z) = atan(cimag(z) / creal(z))"
>>
>> Hope this helps.
>>
>> Thank you very much.
>>
>> Ramiro.
Information forwarded to debian-bugs-dist@lists.debian.org, Martin Schulze <joey@debian.org>:
Bug#326720; Package manpages-dev.
(full text, mbox, link).
Acknowledgement sent to Ramiro Aceves <ea1abz@gmail.com>:
Extra info received and forwarded to list. Copy sent to Martin Schulze <joey@debian.org>.
(full text, mbox, link).
Message #27 received at 326720@bugs.debian.org (full text, mbox, reply):
>
>
> Ramiro is right - that is, his text is much better than the
> present text. However normalizations differ.
>
> It is true that tan(carg(z)) = cimag(z) / creal(z),
> almost by definition. Taking atan() on both sides yields
> atan(tan(carg(z))) = atan(cimag(z) / creal(z))
> but it is not precisely true that atan(tan(x)) = x.
> The tan() function is periodic with period pi, and
> atan() returns an answer in (-pi/2,pi/2], so atan(tan(x))
> returns the value that is congruent x mod pi and lies in
> this interval.
> In particular, atan(tan(carg(z))) returns a value that
> is congruent carg(z) mod pi and lies in (-pi/2,pi/2].
> On the other hand, carg returns a value in [-pi,pi]
> and if that return value does not lie in (-pi/2,pi/2]
> then carg(z) and atan(cimag(z) / creal(z)) will differ by pi.
>
> In other words: you may write
> "One has tan(carg(z)) = cimag(z) / creal(z)."
>
> Andries
>
>
Hello Andries, your explanation is superb and very accurate. You are
completely right.
I never thought I could find a bug.....;-)
Free software and Debian are marvellous.
Thank you very much.
Ramiro.
Information forwarded to debian-bugs-dist@lists.debian.org, Martin Schulze <joey@debian.org>:
Bug#326720; Package manpages-dev.
(full text, mbox, link).
Acknowledgement sent to "Michael Kerrisk" <mtk-manpages@gmx.net>:
Extra info received and forwarded to list. Copy sent to Martin Schulze <joey@debian.org>.
(full text, mbox, link).
Message #32 received at 326720@bugs.debian.org (full text, mbox, reply):
tags 326720 fixed-upstream
thanks
> Ramiro is right - that is, his text is much better than the
> present text. However normalizations differ.
>
> It is true that tan(carg(z)) = cimag(z) / creal(z),
> almost by definition. Taking atan() on both sides yields
> atan(tan(carg(z))) = atan(cimag(z) / creal(z))
> but it is not precisely true that atan(tan(x)) = x.
> The tan() function is periodic with period pi, and
> atan() returns an answer in (-pi/2,pi/2], so atan(tan(x))
> returns the value that is congruent x mod pi and lies in
> this interval.
> In particular, atan(tan(carg(z))) returns a value that
> is congruent carg(z) mod pi and lies in (-pi/2,pi/2].
> On the other hand, carg returns a value in [-pi,pi]
> and if that return value does not lie in (-pi/2,pi/2]
> then carg(z) and atan(cimag(z) / creal(z)) will differ by pi.
>
> In other words: you may write
> "One has tan(carg(z)) = cimag(z) / creal(z)."
Okay -- that is what will appear in man-pages-2.08
--
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7
Want to help with man page maintenance? Grab the latest
tarball at ftp://ftp.win.tue.nl/pub/linux-local/manpages/
and grep the source files for 'FIXME'.
Tags added: fixed-upstream
Request was from "Michael Kerrisk" <mtk-manpages@gmx.net>
to control@bugs.debian.org.
(full text, mbox, link).
Reply sent to Martin Schulze <joey@infodrom.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Ramiro Aceves <ea1abz@gmail.com>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #39 received at 326720-close@bugs.debian.org (full text, mbox, reply):
Source: manpages
Source-Version: 2.08-1
We believe that the bug you reported is fixed in the latest version of
manpages, which is due to be installed in the Debian FTP archive:
manpages-dev_2.08-1_all.deb
to pool/main/m/manpages/manpages-dev_2.08-1_all.deb
manpages_2.08-1.diff.gz
to pool/main/m/manpages/manpages_2.08-1.diff.gz
manpages_2.08-1.dsc
to pool/main/m/manpages/manpages_2.08-1.dsc
manpages_2.08-1_all.deb
to pool/main/m/manpages/manpages_2.08-1_all.deb
manpages_2.08.orig.tar.gz
to pool/main/m/manpages/manpages_2.08.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 326720@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Martin Schulze <joey@infodrom.org> (supplier of updated manpages package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Fri, 18 Nov 2005 07:46:45 +0100
Source: manpages
Binary: manpages manpages-dev
Architecture: source all
Version: 2.08-1
Distribution: unstable
Urgency: low
Maintainer: Martin Schulze <joey@debian.org>
Changed-By: Martin Schulze <joey@infodrom.org>
Description:
manpages - Manual pages about using a GNU/Linux system
manpages-dev - Manual pages about using GNU/Linux for development
Closes: 263756 314435 322934 323621 325115 326720 328629
Changes:
manpages (2.08-1) unstable; urgency=low
.
* New upstream release, with the following changes
- Add _POSIX_C_SOURCE 199309 to nanosleep(2) prototype (Closes: Bug#314435)
- Clarified arguments in outb(2) (Closes: Bug#263756)
- Corrected prototype in poll(2) (Closes: Bug#322934)
- Removed misleading text in rand(3) (Closes: Bug#328629)
- Correction of description of carg(3) (Closes: Bug#326720)
- Removed reference to rpc_secure(3) in rpc(3) (Closes: Bug#325115)
- Mention pivot-root in initrd(4) (Closes: Bug#323621)
Files:
6682770978e807df9d68cc3d1ee87677 584 doc - manpages_2.08-1.dsc
0b3cca8825ac6980fdc22d47d23c6888 1050767 doc - manpages_2.08.orig.tar.gz
929aaee8838745ccb7af2bf4bb1596f1 44697 doc - manpages_2.08-1.diff.gz
abf56fc177c2af5490b962f301a2b4b2 402880 doc important manpages_2.08-1_all.deb
67dc6340a6b039bb1fb74604714347cd 1104406 doc standard manpages-dev_2.08-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDfXllW5ql+IAeqTIRAjEWAJ4rAV2qjPqtyYu0RtGiykphDcUs2ACdH6Cy
cIx6c2EfU8aeF/mi+qAA770=
=l+s0
-----END PGP SIGNATURE-----
Information forwarded to debian-bugs-dist@lists.debian.org, Martin Schulze <joey@debian.org>:
Bug#326720; Package manpages-dev.
(full text, mbox, link).
Acknowledgement sent to Justin Pryzby <justinpryzby@users.sourceforge.net>:
Extra info received and forwarded to list. Copy sent to Martin Schulze <joey@debian.org>.
(full text, mbox, link).
Message #44 received at 326720@bugs.debian.org (full text, mbox, reply):
reopen 326720
tag 326720 - fixed-upstream
tag 326720 + patch
thanks
In the interest of taking full advantage of Andrie's correction,
please remove the first line:
One has carg(z) = atan(cimag(z) / creal(z)).
One has tan(carg(z)) = cimag(z) / creal(z).
Alternately, make the first line correct by saying, instead:
One has carg(z) = atan(cimag(z) / creal(z)) (mod pi).
(also, if you take the "alternative" path, avoid repeating "one has").
Thanks;
--
Clear skies,
Justin
Bug reopened, originator not changed.
Request was from Justin Pryzby <justinpryzby@users.sourceforge.net>
to control@bugs.debian.org.
(full text, mbox, link).
Tags removed: fixed-upstream
Request was from Justin Pryzby <justinpryzby@users.sourceforge.net>
to control@bugs.debian.org.
(full text, mbox, link).
Tags added: patch
Request was from Justin Pryzby <justinpryzby@users.sourceforge.net>
to control@bugs.debian.org.
(full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Martin Schulze <joey@debian.org>:
Bug#326720; Package manpages-dev.
(full text, mbox, link).
Acknowledgement sent to "Michael Kerrisk" <mtk-manpages@gmx.net>:
Extra info received and forwarded to list. Copy sent to Martin Schulze <joey@debian.org>.
(full text, mbox, link).
Message #55 received at 326720@bugs.debian.org (full text, mbox, reply):
tag 326720 fixed-upstream
thanks
> In the interest of taking full advantage of Andrie's correction,
> please remove the first line:
>
> One has carg(z) = atan(cimag(z) / creal(z)).
> One has tan(carg(z)) = cimag(z) / creal(z).
>
> Alternately, make the first line correct by saying, instead:
>
> One has carg(z) = atan(cimag(z) / creal(z)) (mod pi).
>
> (also, if you take the "alternative" path, avoid repeating "one has").
Hi Justin,
That was a glitch. The first line should have been deleted, and
it has been for 2.17.
Thanks for catching that.
Cheers,
Michael
--
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7
Want to help with man page maintenance? Grab the latest
tarball at ftp://ftp.win.tue.nl/pub/linux-local/manpages/
and grep the source files for 'FIXME'.
Tags added: fixed-upstream
Request was from "Michael Kerrisk" <mtk-manpages@gmx.net>
to control@bugs.debian.org.
(full text, mbox, link).
Reply sent to Martin Schulze <joey@infodrom.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Ramiro Aceves <ea1abz@gmail.com>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #62 received at 326720-close@bugs.debian.org (full text, mbox, reply):
Source: manpages
Version: 2.08-1
--
We all know Linux is great... it does infinite loops in 5 seconds.
-- Linus Torvalds
Please always Cc to me when replying to me on the lists.
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 24 Jun 2007 19:48:17 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Mar 9 10:02:44 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.