Re: [sage-devel] ZZ(expr) != int(expr)

2010-07-28 Thread Soroosh Yazdani
I've created a bug report about this: http://trac.sagemath.org/sage_trac/ticket/9627 Soroosh On Wed, Jul 28, 2010 at 2:58 PM, Harald Schilly wrote: > Hello sage-devel, I got this from the "report a problem" bugreport > (observed on sagenb.org) and I can confirm this using sage 4.5, ubuntu > 10.4

[sage-devel] return type for coefficient,

2009-05-07 Thread Soroosh Yazdani
Hi, this might be a design decision, so I haven't filed a bug report for it yet. However, it seems that coefficient is returning the wrong type when it's called on multinomials. Here is an example code: sage: K.=QQ[] sage: f = x^3+y^3+z^3 sage: f.coefficient([3,0,0]).parent() Multivariate Polynom

[sage-devel] mpi4py

2009-04-04 Thread Soroosh Yazdani
Hi all, I wanted to play around with parallel age code a bit, and so I tried to install mpi4py package in sage 3.4. However, during the build process, swig complains that -O option is unrecognized. Has anybody else used this package recently? (The swig installed is version 1.3.21) Soroosh --~--~

[sage-devel] log_repr/log in finite field,

2008-07-14 Thread Soroosh Yazdani
Is there a particular reason why the log_repr in finite fields returns a string instead of an integer? Actually, more important than that, the following fails: F=GF(5) r=F.multiplicative_generator() r.log_repr() <--- comes back with an error log(r,r) < also comes back with an error. This is n

[sage-devel] Re: coercing of log(2)*1.0

2008-06-03 Thread Soroosh Yazdani
On Tue, Jun 3, 2008 at 3:09 AM, Gary Furnish <[EMAIL PROTECTED]> wrote: > Your going to have a hard time convincing me that the default behavior > in Mathematica and Maple is wrong. This makes sense for number theory > but not for people using calculus. Hmm, I must say from using maple on expr

[sage-devel] Re: notebook features discussion

2008-04-20 Thread Soroosh Yazdani
It would be nice if one had a way of checking the code of a procedure that is called inside of another function. Specifically, when you type M.myfunc??, sage prints out the source code, and in many cases, this code is very generic, that calls another function, possibly after checking some boundary

[sage-devel] Re: Sage 2.11.alpha1 released!

2008-03-26 Thread Soroosh Yazdani
TED]> wrote: > > > > On Mar 26, 3:25 am, "Soroosh Yazdani" <[EMAIL PROTECTED]> wrote: > > Should I uninstall atlas if I want to check your patch for the future > > version? Atlas is installed system wide on my computer, and linbox > seemed to > >

[sage-devel] Re: Sage 2.11.alpha1 released!

2008-03-25 Thread Soroosh Yazdani
25, 2008 at 9:44 PM, mabshoff < [EMAIL PROTECTED]> wrote: > > > > On Mar 25, 9:42 pm, "Soroosh Yazdani" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > compiling fails for me on linbox. Apparently it can't find blas > libraries. > > My

[sage-devel] Re: Sage 2.11.alpha1 released!

2008-03-25 Thread Soroosh Yazdani
Hi, compiling fails for me on linbox. Apparently it can't find blas libraries. My computer is an hp laptop, with amd 64x2 processor, running gentoo. I have acml installed on my computer, although looking at install.log it seems like sage is compiling atlas libraries as well, so I'm not sure if tha

[sage-devel] Re: rpm's, deb, and ebuilds,

2008-01-21 Thread Soroosh Yazdani
On Jan 21, 2008 5:00 PM, mabshoff < [EMAIL PROTECTED]> wrote: > > Hi Soroosh, Hi Michael, > > Hmm, I think there is a problem when building the extensions since you > will need to have write permissions to copy the resulting dynamic > library over. That could be potentially avoided by having th

[sage-devel] Re: rpm's, deb, and ebuilds,

2008-01-21 Thread Soroosh Yazdani
On Jan 21, 2008 4:59 PM, William Stein <[EMAIL PROTECTED]> wrote: > > On Jan 21, 2008 1:50 PM, Soroosh Yazdani <[EMAIL PROTECTED]> wrote: > > Hi, > > > > there seems to be some exciting progress in making packages for sage. > > However, I'm curio

[sage-devel] rpm's, deb, and ebuilds,

2008-01-21 Thread Soroosh Yazdani
Hi, there seems to be some exciting progress in making packages for sage. However, I'm curious if there is a plan for allowing normal users have their own sage libraries that they can edit. That is, if a normal user runs "sage -clone" on a sage that is globally installed, a copy of the cloned dire

[sage-devel] Re: Multiple return values

2008-01-17 Thread Soroosh Yazdani
On Jan 17, 2008 9:33 AM, David Kohel <[EMAIL PROTECTED]> wrote: > X = Iso(E1,E2) # does nothing > X.cardinality() # tests is_isomorphic and j-invariant = 0 or 12^3 > X.representative() # computes an isomorphism > X.list() # computes all isomorphisms > > The advantage of creating X is that it can c

[sage-devel] Re: Anyone knows about any regression in gmp-4.2.2?

2008-01-10 Thread Soroosh Yazdani
Hi, I'm actually really excited that you've got as far. Do you have an ebuild that I can try? Cheers, Soroosh On Jan 8, 2008 1:40 PM, Francois <[EMAIL PROTECTED]> wrote: > > > > On Jan 8, 11:55 pm, mabshoff <[EMAIL PROTECTED] > dortmund.de> wrote: > > On Jan 8, 10:00 am, Francois <[EMAIL PROTEC

[sage-devel] Re: Breaking News: Trophees du Libre

2007-11-30 Thread Soroosh Yazdani
On 11/29/07, Martin Albrecht <[EMAIL PROTECTED]> wrote: > > > There is this quote from Stallman on their webpage: > > > > " With 113 participants from 18 countries, 'Trophées du Libre' is > > unquestionably the largest competition ever organised to promote the > > spirit of Free Software to softwa

[sage-devel] Re: multivariate polynomial coefficients

2007-10-12 Thread Soroosh Yazdani
Another *possible* way of sage behaving is sage: P.=ZZ[] sage: f=x*y^2+x*y+y+x+1 sage: f.coefficient(y^2) 0 sage: f.coefficient(y^1) 1 sage: f.coefficient(y^0) 1 Now, I'm not sure if this is better or not, but I thought maybe I should point it out. The biggest problem with this is that if you do

[sage-devel] Re: fractional ideals in number fields

2007-10-03 Thread Soroosh Yazdani
I think what you're saying makes sense. Maybe introduce a method fractionalideal, specific to number fields? Soroosh On Wed, Oct 03, 2007 at 10:44:49AM -0400, David Harvey wrote: > I find this very confusing: > > sage: F. = QuadraticField(-5) > sage: F.ideal(6) > Fractional ideal (6) of Number F

[sage-devel] Re: irange ticket #706 wontfix

2007-09-21 Thread Soroosh Yazdani
On Fri, Sep 21, 2007 at 05:20:39PM -0700, Robert Bradshaw wrote: > >> Also, [10..1] now returns [10], it should probably return the empty > >> list. What about [10,11,.,0]? Also the empty list? I think so. > >> Thoughts? I just want to say that despite the fact that I think [1..10] notation is

[sage-devel] Re: calculus in SAGE/SymPy

2007-09-12 Thread Soroosh Yazdani
On Wed, Sep 12, 2007 at 05:19:57PM -0700, William Stein wrote: > > On 9/12/07, Soroosh Yazdani <[EMAIL PROTECTED]> wrote: > > Hmm, there seems to be many assumptions that I would like it be clarified. > > Specifically where do all these objects live in. > > For exa

[sage-devel] Re: calculus in SAGE/SymPy

2007-09-12 Thread Soroosh Yazdani
Hmm, there seems to be many assumptions that I would like it be clarified. Specifically where do all these objects live in. For example, sin is a function from K->K. same as cos. If that's the case, then sin+cos makes perfect sense. Can we make the same assumtion for x? Is it safe to assume x is a

[sage-devel] Re: Number field enumeration

2007-09-05 Thread Soroosh Yazdani
I'm sure the overhead is tiny, but you are also calculating f' in each iteration. On 9/5/07, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > > > On Sep 5, 2007, at 1:25 PM, John Voight wrote: > > > Wow Robert, thanks! Talk about real-time recreating the wheel--my > > code is quite similar, though I

[sage-devel] Re: questions about element.pyx

2007-07-31 Thread Soroosh Yazdani
eated as an Abelian group right now, while using the other way vectorspaces are Abelian groups under addition. Cheers, Soroosh On 7/31/07, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > > > On Jul 31, 2007, at 11:16 AM, Soroosh Yazdani wrote: > > > I just realized that I w

[sage-devel] Re: questions about element.pyx

2007-07-31 Thread Soroosh Yazdani
round? Cheers, Soroosh On 7/30/07, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > > > On Jul 30, 2007, at 12:45 PM, Soroosh Yazdani wrote: > > > Hi, > > > > I am trying to implement scalar division in sage, and I'm starting > > to get a bit confused a

[sage-devel] questions about element.pyx

2007-07-30 Thread Soroosh Yazdani
Hi, I am trying to implement scalar division in sage, and I'm starting to get a bit confused about the class hierarchy. I believe that a while ago there was some discussion about the class hierarchy, but I have no idea what the results were, and I figured I will just ask my questions here. First,

[sage-devel] Fwd: [syazdani: Re: [sage-devel] Re: odd error in sage,]

2007-07-14 Thread Soroosh Yazdani
Sure. I'm essentially following the same technique used in Seng-Kiat Chua and San Ling's article "On the Rational Cuspidal Subgroup and the Rational Torsion Points of J_0(pq)", and my thesis (arXiv:0707.0437). Let L be the space of functions on the upper half plane generated (multiplicatively) by e

[sage-devel] odd error in sage,

2007-07-13 Thread Soroosh Yazdani
Hi, I was writing a function to calculate the structure of cuspidal subgroup of J_0(N) without using modular symbols. I came across the following puzzling bug. Here is a procedure which produces a matrix def generate_cond5(l,r): M=Matrix(QQ,l,r) for j in range(l): divpoint=2**j

[sage-devel] Re: some sage development notes

2007-04-13 Thread Soroosh Yazdani
On Fri, Apr 13, 2007 at 10:08:43AM -0700, William Stein wrote: > This is great news! Many thanks for the volunteering of help. > Robert Bradshaw has also expressed interest in helping on the MacOSX > packaging. So that makes two volunteers so far. Is anybody interested > in helping with the L

[sage-devel] Fwd: bug in hecke_matrix?

2007-02-15 Thread Soroosh yazdani
I think there is a bug in hecke_matrix code right now. I get the following results, running sage on sage.math computer: -- | SAGE Version 2.1.0.1, Release Date: 2007-02-09 | | Type notebook() for the GUI, and l