New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pi and e behaving strangely when used as a bareword in math #24
Comments
From @perlDreamerPlease try running either the pi.t or e.t tests from pugs t/builtins/math/{e,pi}.t. When used in an equation like this: pi + 3 parrot returns this error: too few arguments passed (1) - 2 params expected pi and e don't take any arguments, so maybe it is '+' complaining? |
From @pmichaudOn Fri, Jul 27, 2007 at 09:13:42PM -0700, Colin Kuskie wrote:
Out of curiosity, where are 'pi' and 'e' defined (e.g., in Also, I'm looking at the STD.pm grammar, and I don't quite see how Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @perlDreamerOn Saturday 28 July 2007, Patrick R. Michaud wrote:
I originally came across pi in src/builtins/math.pir pi and e It's mentioned directly in older versions of S29: http://www.rodadams.net/Perl/S29.html In today's S29, pi is mentioned as part of the Num role. e Colin |
From @moritzPatrick R. Michaud wrote:
S29, section "Num": Num provides a number of constants in addition to the basic mathematical use Num :constants; or use the full name, e.g. Num::pi. HTH, -- |
From @pmichaudOn Sat, Jul 28, 2007 at 01:48:13PM -0500, Patrick R. Michaud wrote:
Actually, in thinking about this, there's likely to be a symbol Pm |
From @perlDreamerOn Saturday 28 July 2007, Patrick R. Michaud wrote:
Okay. I'm seeing similar behavior with things like sin: use v6-alpha; use Test; plan 2; { returns 1..2 So that should fix a whole raft of semi-related bugs. |
From @pmichaudOn Sat, Jul 28, 2007 at 01:01:05PM -0700, Colin Kuskie wrote:
Correct -- the same sort of argument applies for 1-ary functions Pm |
From @moritzPatrick R. Michaud wrote:
S29, section "Num": Num provides a number of constants in addition to the basic mathematical use Num :constants; or use the full name, e.g. Num::pi. HTH, -- |
From @perlDreamerOn Saturday 28 July 2007, Patrick R. Michaud wrote:
I originally came across pi in src/builtins/math.pir pi and e It's mentioned directly in older versions of S29: http://www.rodadams.net/Perl/S29.html In today's S29, pi is mentioned as part of the Num role. e Colin |
From @pmichaudpi() is fixed as of r28699. The 'e' constant appears to be no longer Closing ticket -- thanks! Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#44211 (status was 'resolved')
Searchable as RT44211$
The text was updated successfully, but these errors were encountered: