On Thu, Jul 23, 2009 at 10:25 PM, David D.wrote:
>
> Hi, I'm trying to run a simple script that basically loops through a
> long list of polynomials, does some things with them in Axiom,
> and imports the results back to Sage.
I am very interested in your use of Axiom in Sage. I was beginning to
D White wrote:
> I'm having no luck getting the "bins" option to pylab.hist() to work.
> Here's an example:
>
> fish_data=[random() for i in range(100)]
> import pylab
> import numpy
>
> divats = numpy.arange(0.0,1.0,0.1)
> pylab.hist(fish_data, bins=divats)
> pylab.savefig('sage.png')
>
You
On Thu, Jul 23, 2009 at 8:16 PM, D White wrote:
>
> I'm having no luck getting the "bins" option to pylab.hist() to work.
> Here's an example:
>
> fish_data=[random() for i in range(100)]
> import pylab
> import numpy
>
> divats = numpy.arange(0.0,1.0,0.1)
> pylab.hist(fish_data, bins=divats)
> py
I'm having no luck getting the "bins" option to pylab.hist() to work.
Here's an example:
fish_data=[random() for i in range(100)]
import pylab
import numpy
divats = numpy.arange(0.0,1.0,0.1)
pylab.hist(fish_data, bins=divats)
pylab.savefig('sage.png')
Without the "bins=divats" it gives the expe
On Jul 22, 10:35 pm, Rob Beezer wrote:
> A student of mine was running a connection to a Sage notebook server
> on his Android phone last Friday. He showed me an interesting plot,
> so I know it was working properly. I'll point him to this discussion
> and see if I can get details.
Got back so
On Thu, Jul 23, 2009 at 7:25 PM, David D. wrote:
>
> Hi, I'm trying to run a simple script that basically loops through a
> long list of polynomials, does some things with them in Axiom, and
> imports the results back to Sage. After running for a while (60-90
> minutes) it will hang with the mess
Hi, I'm trying to run a simple script that basically loops through a
long list of polynomials, does some things with them in Axiom, and
imports the results back to Sage. After running for a while (60-90
minutes) it will hang with the message "Axiom crashed -- automatically
restarting." At this p
On Thu, Jul 23, 2009 at 1:08 PM, VictorMiller wrote:
>
> I have a finite dimensional vector space V/k, and various
> automorphisms (i.e. members of GL(V)). I would like to construct the
> field k(X), where the variables in X correspond to a basis of V, along
> with the operation of GL(V) on k(X).
Its not the same issue, but http://trac.sagemath.org/sage_trac/ticket/5206
is somewhat related. I have taken to only using .py files, which seem
more robust in general.
-Marshall
On Jul 23, 2:14 pm, John H Palmieri wrote:
> On Jul 23, 9:16 am, VictorMiller wrote:
>
> > I have a sage program i
On Jul 23, 9:16 am, VictorMiller wrote:
> I have a sage program in a file in one of my directories called
> calc.sage. It uses a class that I wrote called Table, which I've put
> in a file called Table.py in the same directory. In the sage notebook
> I load calc.sage (by explicitly giving the p
I have a finite dimensional vector space V/k, and various
automorphisms (i.e. members of GL(V)). I would like to construct the
field k(X), where the variables in X correspond to a basis of V, along
with the operation of GL(V) on k(X). Is there some existing way to do
this in SAGE, or do I need t
The very crude solution I use with pure python is to put stuff in the
site-packages directory. In sage, this is in
$SAGE_ROOT/local/lib/python/site-packages. It is where most python
packages install themselves.
-Marshall
On Jul 23, 12:11 pm, VictorMiller wrote:
> I know that you can modify sy
> for x in range(10):
> for y in range(10):
> if 2^x*3^y==12:
> break
>
> (x,y)
>
I think the most "pythonic" solution would be to use
itertools.product, which requires python 2.6 or greater (and hence
sage 4.1 or greater):
sage: import itertools
sage: for x,y in iter
I know that you can modify sys.path which is where python looks to
find where to use import. The question that I should have asked is
how does one develop new sage functions. It makes sense for each
project to have its own directory to contain the pieces of stuff.
What I'd like is to have some s
Hi Victor. Although I don't know the answer to your question, I'm
sure that it actually a python question (rather than a sage one) so I
expect that the answer lies somewhere in the wealth of online python
documentation!
Of course someone else might give a more helpful answer...
John Cremona
On
On Jul 22, 12:21 pm, davidloeffler wrote:
> On Jul 21, 6:01 pm, mac8090 wrote:
>
>
>
> > For a field extension over Q of 2 values, for example M=QQ(i, sqrt
> > (2)), it is possible to find an absolute field X by the following
>
> > L.=NumberField(x^2-2)
> > R.=L[]
> > M.=L.extension(t^2+1)
>
>
I have a sage program in a file in one of my directories called
calc.sage. It uses a class that I wrote called Table, which I've put
in a file called Table.py in the same directory. In the sage notebook
I load calc.sage (by explicitly giving the path to the directory), and
calc.sage has a line
Two more solutions:
#ugly:
x,y = 0,0
while 2^x*3^y != 12 and x < 10:
y = 0
x = x + 1
while 2^x*3^y != 12 and y < 10:
y = y + 1
#short:
for x,y in CartesianProduct(range(10),range(10)):
if 2^x*3^y==12:
break
-Marshall Hampton
On Jul 23, 4:31 am, mac8090 wrote:
>
Hi Ron,
On Thu, Jul 23, 2009 at 5:13 PM, rje wrote:
> p.s. Just to make sure there is at least one thing useful in this
> post, I point out a misprint after the word "polynomial" at
> http://www.sagemath.org/doc/bordeaux_2008/level_one_forms.html
This is now ticket #6600
http://trac.sagemat
On Thu, Jul 23, 2009 at 8:41 PM, Carlo
Hamalainen wrote:
>
> On Thu, Jul 23, 2009 at 12:31 PM, mac8090 wrote:
>> How does one break from a double for loop, or a loop of two variables?
>
> One way is to use an exception:
>
>
> class GetOut(Exception): pass
>
> try:
>for x in range(10):
>
On Thu, Jul 23, 2009 at 12:31 PM, mac8090 wrote:
> How does one break from a double for loop, or a loop of two variables?
One way is to use an exception:
class GetOut(Exception): pass
try:
for x in range(10):
for y in range(10):
if 2^x*3^y==12:
raise Get
mac8090 ha scritto:
>
> for x in range(10):
> for y in range(10):
> if 2^x*3^y==12:
> break
>
> (x,y)
>
>
I would like that :
def foo():
for x in range(10):
for y in range(10):
if 2^x*3^y==12:
return (x,y)
The return command exits
How does one break from a double for loop, or a loop of two variables?
for example:
for x in range(10):
for y in range(10):
if 2^x*3^y==12:
break
(x,y)
I want this to return (2,1) rather than (9,1). This is just a
simplified example, but that is the approxima
I'm not sure if or when either of these will be available, but
neither are trivial. Both questions are probably better asked on the
cython lists.
- Robert
On Jul 22, 2009, at 12:17 PM, Ethan Van Andel wrote:
> Robert,
>
> Is there any prediction for when numpy complex types will work?
> (o
On Thu, Jul 23, 2009 at 5:13 PM, rje wrote:
> p.s. Just to make sure there is at least one thing useful in this
> post, I point out a misprint after the word "polynomial" at
> http://www.sagemath.org/doc/bordeaux_2008/level_one_forms.html
You're invited to upload a patch to the trac server. I
It's not so much that I haven't read the documentation, but rather
that the definitions have been unclear.
It's not Sage, it's me--things have been unclear all my life. To
paraphrase from 1969's "Both sides now", I really don't know
"numerical_eigenforms" at all. What Sage calls a cusp form on
26 matches
Mail list logo