Skip Menu |

This queue is for tickets about the Chemistry-Mol CPAN distribution.

Report information
The Basics
Id: 52715
Status: open
Priority: 0/
Queue: Chemistry-Mol

People
Owner: Nobody in particular
Requestors: DONANGEL [...] cpan.org
Cc: angel [...] feht.dgtu.donetsk.ua
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.37
Fixed in: (no value)



CC: angel [...] feht.dgtu.donetsk.ua
Chemistry::File::Formula requires in package Math::Complex. Otherwise print message: # On this machine, Inf = 'inf' Many thanks.
Subject: Re: [rt.cpan.org #52715]
Date: Mon, 14 Dec 2009 14:36:52 -0500
To: bug-Chemistry-Mol [...] rt.cpan.org
From: Ivan Tubert-Brohman <itub [...] cpan.org>
I'm sorry but I don't understand this ticket. Could you be more explicit? Thanks, Ivan On Sat, Dec 12, 2009 at 3:08 PM, Aleksander Gorohovski via RT <bug-Chemistry-Mol@rt.cpan.org> wrote: Show quoted text
> Sat Dec 12 15:08:42 2009: Request 52715 was acted upon. > Transaction: Ticket created by DONANGEL >       Queue: Chemistry-Mol >     Subject: (No subject given) >   Broken in: 0.37 >    Severity: Normal >       Owner: Nobody >  Requestors: DONANGEL@cpan.org >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=52715 > > > > Chemistry::File::Formula requires in package > Math::Complex. > > Otherwise print message: > # On this machine, Inf = 'inf' > > Many thanks. >
Пнд. Дек. 14 14:37:12 2009, ITUB писал: Show quoted text
> I'm sorry but I don't understand this ticket. Could you be more
explicit? Show quoted text
> > Thanks, > Ivan
I beg your pardon. I used the following code in my program: ########## use Chemistry::File::Formula; my %formula = Chemistry::File::Formula->parse_formula('[Cr(CO (NH2)2)6]4[Cr(CN)6]3'); ########## and get output: # On this machine, Inf = 'inf' but аfter (intuition, sorry): Show quoted text
cpan> install Math::Complex
this message was gone. Probably it is useful to somebody. Many thanks. Show quoted text
> On Sat, Dec 12, 2009 at 3:08 PM, Aleksander Gorohovski via RT > <bug-Chemistry-Mol@rt.cpan.org> wrote:
> > Sat Dec 12 15:08:42 2009: Request 52715 was acted upon. > > Transaction: Ticket created by DONANGEL > >       Queue: Chemistry-Mol > >     Subject: (No subject given) > >   Broken in: 0.37 > >    Severity: Normal > >       Owner: Nobody > >  Requestors: DONANGEL@cpan.org > >      Status: new > >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=52715 > > > > > > > Chemistry::File::Formula requires in package > > Math::Complex. > > > > Otherwise print message: > > # On this machine, Inf = 'inf' > > > > Many thanks. > >
Subject: Re: [rt.cpan.org #52715] Requires in Math::Complex
Date: Mon, 14 Dec 2009 16:00:27 -0500
To: bug-Chemistry-Mol [...] rt.cpan.org
From: Ivan Tubert-Brohman <itub [...] cpan.org>
Thank you, now I understand what you meant. I haven't been able to reproduce it, though. I do have Math::Complex installed already, because it is one of the core modules that come with the perl distribution. Were you using a nonstandard distribution that didn't include it, or did you just update from an older version of the module? Still, this is very strange, because Chemistry::File::Formula doesn't use complex numbers at all (I don't remember any part of perlmol using complex numbers). I don't think there's anything I can do about it if I can't reproduce it, but like you say, perhaps this information will be useful to others. Ivan
Dear Ivan! I use Linux (ALT Linux 4.x) & CPAN. Probably it not the modern distribution kit. :) But in a debugger has found: $ perl -de 0 <...truncated output...> DB<1> use Chemistry::File::Formula; DB<2> f Complex Choosing /usr/lib/perl5/Math/Complex.pm matching `Complex': 1 # 2 # Complex numbers and associated mathematical functions 3 # -- Raphael Manfredi Since Sep 1996 4 # -- Jarkko Hietaniemi Since Mar 1997 5 # -- Daniel S. Lewart Since Sep 1997 6 # 7 8 package Math::Complex; 9 10: use strict; <...truncated output...> Sorry, It turns out that the module Chemistry::File::Formula implicitly uses module Math::Complex Nice to have met you. Yours faithfully, Alessandro
Subject: Re: [rt.cpan.org #52715] Requires in Math::Complex
Date: Tue, 15 Dec 2009 09:15:04 -0500
To: bug-Chemistry-Mol [...] rt.cpan.org
From: Ivan Tubert-Brohman <itub [...] cpan.org>
Thank you again. Now I know why I'm using Math::Complex implicitly. The reason is that I use Math::Trig (not for the complex numbers but for functions such as acos), and Math::Trig uses Math::Complex. Ivan