#6305: preparser issue with recurssive loading of .sage files
--------------------+-------------------------------------------------------
Reporter: was | Owner: cwitty
Type: defect | Status: new
Priority: major | Milestone: sage-4.0.2
Component: misc | Keywords:
Reviewer: | Author:
Merged: |
--------------------+-------------------------------------------------------
{{{
Hi,
I'm not sure if it's a bug or it's me doing something wrong.
I have two files:
test1.sage containing nothing but
print numpy.random.normal(0,(2*0.0061*0.33)^(1/2),1)
and
test2.sage containing
load "test1.sage"
I import numpy
sage: import numpy
Now
sage: load "test1.sage"
returns values always smaller than 1
thats the right distribution, the same i get when using the notebook-
interface
but
sage: load "test2.sage"
very often returns values bigger than 1,
thats a whole different distribution
My system is ubuntu-9.04-amd64 on Pentium Dual Core
sage-4.0.1 from 2009-06-06
}}}
to which Marshall responds:
{{{
I'm not sure what is happening but I would guess that at some point
the ^(1/2) gets turned into ^(0), and then your standard deviation
goes from .06... to 1. I.e., it seems like maybe the preparser
doesn't catch these nested loadings.
-M. Hampton
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6305>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---