Hi,
I've experienced similar problems after upgrading to sage 4.3.2, but I
don't think it's a problem of sage-mode, but rather of sage itself,
since it persists, when running sage from the command line.
Interestingly only for some objects the problem arises.
R = PolynomialRing(QQ, 'x')
f = R.ran
On Feb 18, 2:21 am, Oscar Gerardo Lazo Arjona
algebraicame...@gmail.com wrote:
I have the feeling that this is a
more profound problem than it appears (finding integer solutions).
... and I have the feeling that you can do this rather directly with
Sage's CRT_list function, but I'm unable to
I was pretty sure, that there was a method for polynomials to extract
the coefficient of a certain monomial (say x^2). But the method I
used for that before
R = PolynomialRing(QQ, 'x')
f = R.random_element(degree = 3)
f.coeff(x^2)
now returns the error
AttributeError:
Hello,
On Thu, Feb 18, 2010 at 1:07 AM, Harald Schilly
harald.schi...@gmail.com wrote:
On Feb 18, 2:21 am, Oscar Gerardo Lazo Arjona
algebraicame...@gmail.com wrote:
I have the feeling that this is a
more profound problem than it appears (finding integer solutions).
... and I have the
On Wed, 17 Feb 2010 at 10:25PM -0800, eliot brenner wrote:
I have a program that includes the command to evaluate the K-Bessel
function using Pari: it will sometimes be called with arguments like
the following:
bessel_K(5*i,320,pari,100)
which evaluates the Bessel function at index
On Feb 18, 9:15 am, zieglerk konstantin.zieg...@gmail.com wrote:
I was pretty sure, that there was a method for polynomials to extract
the coefficient of a certain monomial (say x^2). But the method I
used for that before
R = PolynomialRing(QQ, 'x')
f = R.random_element(degree = 3)
On Feb 18, 2:21 am, Oscar Gerardo Lazo Arjona
algebraicame...@gmail.com wrote:
How many soldiers are there?
If you install the cbc or glpk spkg, you can pose this as a MILP and
something like that should work:
sage: p = MixedIntegerLinearProgram(maximization=False)
sage: soldiers =
Hello !!!
I just wanted to add one line about this very short patch :
http://trac.sagemath.org/sage_trac/ticket/7637
It enables one to define unique variables instead of dictionaries,
which is sometimes useful, for exemple in this case :
Instead of
soldiers =
Thanks!
In the meantime, any suggestions for a work-around (besides write the
entire program in PARI or C)?
Eliot
On Feb 18, 3:26 am, Dan Drake dr...@kaist.edu wrote:
On Wed, 17 Feb 2010 at 10:25PM -0800, eliot brenner wrote:
I have a program that includes the command to evaluate the
Hi Eliot,
On Thu, 18 Feb 2010 04:02:16 -0800 (PST)
eliot brenner eliotpbren...@gmail.com wrote:
Thanks!
In the meantime, any suggestions for a work-around (besides write the
entire program in PARI or C)?
You can just use mpmath to compute besselk. The ticket Dan mentioned
(#3426) has these
I recommend using ffmpeg for stuff like that, it will do a better job
than animate as long as animate is just using imagemagick. You need
to save the image files with sequential names. I can post an example
if you are interested.
-Marshall Hampton
On Feb 17, 2:33 pm, Christopher Olah
On Thu, 18 Feb 2010 at 04:02AM -0800, eliot brenner wrote:
In the meantime, any suggestions for a work-around (besides write the
entire program in PARI or C)?
I would use mpmath, which (for the one example I tried) seems to be
agreeing with Pari:
sage: import mpmath
sage: mpmath.besselk(5*I,
A few weeks ago I posted a problem with Mac OS X with matplotlib in
the SAGE distribution in which attempting to import pylab gave an
error message which stated that there was an import error and the
module _tkagg could not be found. The problem appears to be with
matplotlib (I'm not clear about
On 02/17/2010 10:23 PM, Dana Ernst wrote:
* one should also avoid using i and I as variables for the same
obvious reason as for e
I've also run into problems when using n or N as a variable, since
that is the numeric approximation function (that is used later in the
tutorial).
On 02/18/2010 05:56 AM, Nathann Cohen wrote:
Hello !!!
I just wanted to add one line about this very short patch :
http://trac.sagemath.org/sage_trac/ticket/7637
It enables one to define unique variables instead of dictionaries,
which is sometimes useful, for exemple in this case :
Instead of
This would make a very nice, simple, easy example in the docs!
Not to mention the only non-graph-theoretical one ! :-)
Nathann
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For
* one should also avoid using i and I as variables for the same
obvious reason as for e
I've also run into problems when using n or N as a variable, since that
is the numeric approximation function (that is used later in the tutorial).
Thanks for this tip!
* just a comment: I never
You can directly use the variable p['soldiers'], which will call p's
internal dictionary. Of course you will have to say
p.set_integer(p['soldier']) to define its type !
ah ok, uhm, i wasn't sure and did the most obvious thing for me.
instead of new_variable and set integer, would it be useful
On 02/18/2010 08:45 AM, Dana Ernst wrote:
* just a comment: I never used del(); in fact, I didn't know it existed
before reading your intro (thanks!); I normally just define f to be
the next thing I'm interested in. Actually, I don't know how to get
information about del() in Sage;
On a related note, I just sort of got bit by the problem you describe. I just
wrote a little worksheet talking about Lagrange polynomials for my numerical
analysis class. In editing this worksheet on a Sage 4.3.1 notebook, at one
point, I edited a paragraph of TinyMCE text and when I saved
On 02/18/2010 11:39 AM, Dana Ernst wrote:
On a related note, I just sort of got bit by the problem you describe. I just wrote a
little worksheet talking about Lagrange polynomials for my numerical analysis class. In
editing this worksheet on a Sage 4.3.1 notebook, at one point, I edited a
On 02/18/2010 11:39 AM, Dana Ernst wrote:
On a related note, I just sort of got bit by the problem you describe. I just wrote a
little worksheet talking about Lagrange polynomials for my numerical analysis class. In
editing this worksheet on a Sage 4.3.1 notebook, at one point, I edited a
On 02/18/2010 12:20 PM, D.C. Ernst wrote:
I had 28 students working in groups of 2--3 this morning on a
worksheet that they all uploaded to their Sage Notebook accounts. One
of the things that they were supposed to do was edit an HTML cell.
Two of the groups were unable to do this. When they
On 02/18/2010 11:39 AM, Dana Ernst wrote:
On a related note, I just sort of got bit by the problem you describe. I just wrote a
little worksheet talking about Lagrange polynomials for my numerical analysis class. In
editing this worksheet on a Sage 4.3.1 notebook, at one point, I edited a
For now the following seems sufficient for what I need to do:
sage: import sage.libs.mpmath.all as mpmath
sage: w=mpmath.call(mpmath.besselk,5*I,200,prec=100)
sage: w
1.1515969255360280546036312474e-88
sage: type(w)
type 'sage.rings.complex_number.ComplexNumber'
thanks for your help.
Eliot
On Feb 18, 10:31 am, John Cremona john.crem...@gmail.com wrote:
On Feb 18, 9:15 am, zieglerk konstantin.zieg...@gmail.com wrote:
I was pretty sure, that there was a method for polynomials to extract
the coefficient of a certain monomial (say x^2). But the method I
used for that before
I can run my python scripts using the SAGE python using the
recommended she-bang
#!/usr/bin/env sage -python
as the first line. But if the path to the script has white space or
non-ascii characters I get an error message like,
/Applications/sage-4.3.2/local/bin/sage-sage: line 876: [: too
On Fri, 19 Feb 2010 at 11:17AM +0900, Dan Drake wrote:
I worked on this recently and managed to make some progress. I'll open
a ticket and post a patch there.
The ticket is http://trac.sagemath.org/sage_trac/ticket/8303.
Dan
--
--- Dan Drake
- http://mathsci.kaist.ac.kr/~drake
---
Hello all,
Recently I have been using sage for my thesis work and wanted to
cythonize a bit of code in hopes of making it run faster. I have
created a directory under $SAGE_ROOT/devel/sage/sage and created/
modified all of the files requested in the developers guide. When the
files are pure
On Thu, Feb 18, 2010 at 9:34 PM, D. Monarres dmmonar...@gmail.com wrote:
Hello all,
Recently I have been using sage for my thesis work and wanted to
cythonize a bit of code in hopes of making it run faster. I have
created a directory under $SAGE_ROOT/devel/sage/sage and created/
modified
just found that.. was going to post it.
On Feb 18, 9:39 pm, William Stein wst...@gmail.com wrote:
On Thu, Feb 18, 2010 at 9:34 PM, D. Monarres dmmonar...@gmail.com wrote:
Hello all,
Recently I have been using sage for my thesis work and wanted to
cythonize a bit of code in hopes of making
On Feb 18, 2010, at 9:39 PM, William Stein wrote:
On Thu, Feb 18, 2010 at 9:34 PM, D. Monarres dmmonar...@gmail.com
wrote:
Hello all,
Recently I have been using sage for my thesis work and wanted to
cythonize a bit of code in hopes of making it run faster. I have
created a directory under
32 matches
Mail list logo