[sage-support] n() returns symbolic expression

2010-09-15 Thread Paul Zimmermann
this is now in trac: http://trac.sagemath.org/sage_trac/ticket/9913 Paul Zimmermann -- 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 more options, visit this group at http

[sage-support] continued_fraction returns nothing

2010-09-13 Thread Paul Zimmermann
: continued_fraction(a, bits=150) [2, 7314423575030504, 1, 83, 1, 2, 1, 108, 1, 20] Paul Zimmermann -- 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 more options, visit this group at http

[sage-support] book in french about Sage

2010-07-09 Thread Paul Zimmermann
Mezzarobba, Clément Pernet, Nicolas M. Thiéry, Paul Zimmermann -- 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 more options, visit this group at http://groups.google.com/group/sage-support

Re: [sage-support] Difference between sage and pyhton calculations

2010-04-06 Thread Paul Zimmermann
be better, and remainder could be provided as a different method. Paul Zimmermann -- 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 more options, visit this group at http://groups

Re: [sage-support] Difference between sage and pyhton calculations

2010-04-06 Thread Paul Zimmermann
on function for positive quotient, but not for negative quotient, since the Python function seems to round the quotient towards -infinity: >>> (-6e-6) % 10e-6 4.0007e-06 >>> (6e-6) % (-10e-6) -4.0007e-06 In C99 (and in MPFR) there is no mod/remainder function that

[sage-support] convert trigonometric/hyperbolic functions to exponentials

2010-03-12 Thread Paul Zimmermann
t/2 - --- 2 t > convert(cos(log(t)),exp); 1/2 exp(ln(t) I) + 1/2 exp(-I ln(t)) Paul Zimmermann -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.c

[sage-support] Re: libecm test failure in 4.2

2009-11-01 Thread Paul Zimmermann
def HAVE___GMPN_ADD_NC did not work as expected, or GMP-ECM was configured on a different system where __gmpn_add_nc was available. Paul Zimmermann --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email

[sage-support] matrices, vectors and Sage

2009-05-05 Thread Paul Zimmermann
and 'Full MatrixSpace of 2 by 2 dense matrices over Symbolic Ring' but v * m works: sage: v * m (a*d + e*c, b*d + e*d) I find this rather counter-intuitive wrt mathematics. Is there any rationale? Paul Zimmermann --~--~-~--~~~---~--~~ To post to this gr

[sage-support] Re: Why this numerical integral bombs?

2009-04-25 Thread Paul Zimmermann
7;cos'. However with Sage 3.4 it works for me: -- | Sage Version 3.4, Release Date: 2009-03-11 | | Type notebook() for the GUI, and license() for information.| -- sage: numerical_integral(s

[sage-support] Disabled person using SAGE

2009-03-20 Thread Paul Zimmermann
Another quick option: is there a way to get a listing of all the commands/functions/keywords used in SAGE (the top level not at the source code level)? try: sage: *? Hope this helps, Paul Zimmermann --~--~-~--~~~---~--~~ To post to this group, send

[sage-support] Re: sage ecm-interface

2009-03-03 Thread Paul Zimmermann
William, sorry to answer late: > Paul -- does GMP-ECM have a by-design hard limit of 4095 digits? If > so, then we have to give an error message from Sage immediately (raise > a ValueError). If not, how do we get around the command line 4095 > digit limit? no, GMP-ECM has no hard limi

[sage-support] Sage 3.3 released

2009-02-23 Thread Paul Zimmermann
> And here's a nicely formatted version of the release tour: > http://mvngu.wordpress.com/2009/02/23/sage-33-released this is very nice! I wonder how much time it took you to write this page. Paul Zimmermann --~--~-~--~~~---~--~~ To post to this

[sage-support] Factorization

2009-01-30 Thread Paul Zimmermann
lution is known so far. Paul Zimmermann --~--~-~--~~~---~--~~ 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 more options, visit this group at

[sage-support] Hermite Normal Form

2009-01-22 Thread Paul Zimmermann
thank you Craig and William for your answers. Craig, I was using Sage 3.2, (here on a different computer): -- | Sage Version 3.2, Release Date: 2008-11-20 | | Type notebook() for the GUI, and license() for

[sage-support] Hermite Normal Form

2009-01-21 Thread Paul Zimmermann
Hi, on http://www.loria.fr/~zimmerma/exemple40.sage you can find a 500x360 integer matrix for which computing the Hermite Normal Form takes about 10 times longer in Sage than in Magma: sage: C 500 x 360 dense matrix over Integer Ring sage: time A=C.hermite_form() CPU times: user 22.91 s,

[sage-support] Floatting point LLL Revisited

2008-12-26 Thread Paul Zimmermann
ven perform an exact conversion (don't forget to divide your reduced vectors by C at the end). Damien Stehlé (in cc) might add more details. Paul Zimmermann --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe fr

[sage-support] Arbitrary precision in cython

2008-12-24 Thread Paul Zimmermann
False), or plus 0.5005 ulp on the default printing if 3 digits are left off (assuming rounding to nearest). Paul Zimmermann --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-

[sage-support] Arbitrary precision in cython

2008-12-23 Thread Paul Zimmermann
has the advantage to guarantee correct rounding (for the 150-bit binary result; if you are using the decimal result above, you have to take into account the binary->decimal conversion error, which is at most 1/2 ulp). Paul Zimmermann --~--~-~--~~~---~--~~ To p

[sage-support] sage ecm-interface

2008-12-17 Thread Paul Zimmermann
if is_pseudoprime(p): return p b1 = b1 + isqrt(b1) Paul Zimmermann --~--~-~--~~~---~--~~ 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

[sage-support] [EMAIL PROTECTED]: A simple interval challenge]

2008-11-26 Thread Paul Zimmermann
((-1,1)) sage: c=R((-1,1)) sage: w=R((-0.9,-0.6)) sage: x=R((-0.1,0.2)) sage: y=R((0.3,0.7)) sage: z=R((-0.2,0.1)) sage: f=(a*(w^2+x^2-y^2-z^2)+2*b*(x*y-w*z)+2*c*(x*z+w*y))/(w^2+x^2+y^2+z^2) sage: f.lower() -8.65853658536587 sage: f.upper() 21.6097560975610 Paul Zimmermann --- Start of forwarded m

[sage-support] symbolic integration

2008-11-23 Thread Paul Zimmermann
is the difficult one. As far as I know, he did implement his algorithms in Axiom, including (partly) the algebraic case. Implementing symbolic integration from scratch is a major task, that would require years before reaching what Axiom can do. In any case, I suggest reusing the Axiom

[sage-support] integer linear programming in Sage?

2008-10-09 Thread Paul Zimmermann
l of the solution set with the (very naive) algorithm above. Paul Zimmermann --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visi

[sage-support] integer linear programming in Sage?

2008-10-07 Thread Paul Zimmermann
equivalent to integer linear programming (ILP), see http://en.wikipedia.org/wiki/Integer_linear_programming#Integer_unknowns. Paul Zimmermann --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email

[sage-support] Sage Days 10: October 10-15, Nancy, France

2008-09-22 Thread Paul Zimmermann
arise from the ongoing port as Sage-Combinat. * on October 14, Robert Bradshaw will give a plenary demonstration of Sage. If you have any questions, feel free to email me or any of the other organizers! On behalf of the organizing committee, Paul Zimmermann PS: I take the opportunity to advertize

[sage-support] Re: Peculiar Arithmetic Results

2008-02-24 Thread Paul Zimmermann
> > Something very peculiar is happening. What? Why? > > Thank you, > > David Galant my guess is that in a-c, c is converted to 'sage.interfaces.gp.GpElement' with a smaller precision: sage: a-a.parent()(c) -1.0349334749767836598

[sage-support] Re: [sage-devel] build problem with rc5

2008-02-09 Thread Paul Zimmermann
2.10.2, which hopefully will fix that issue. Paul PS: you should be able to fix it by uncompressing libgcrypt-1.4.0.spkg in spkg/standard, then add "CFLAGS="-O0 -g"; export CFLAGS" at the beginning of file spkg-install, recompressing the archive, and doing again make in t

[sage-support] Re: Constructor for ntl.GF2X polynomials does not take Polynomials over GF(2) as advertised by docstring

2008-02-08 Thread Paul Zimmermann
/wwwmaths.anu.edu.au/~brent/gf2x.html you will find an implementation up to 5 times faster than NTL's GF2X (for degree 2^20). Paul Zimmermann --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group

[sage-support] sage limitation

2008-02-06 Thread Paul Zimmermann
Hi, one of my colleagues discovered a limitation of SAGE: apparently one cannot compute over multivariate ideals over GF(p) for p >= 2^31: sage: R. = PolynomialRing(GF(2147483659)) sage: ideal([x^3-2*y^2,3*x+y^4]).groebner_basis() ... : Singular error: ? `2147483659` greater than 21474

[sage-support] Re: feature request/proposal concerning the method nearby_rational

2008-01-31 Thread Paul Zimmermann
John, > A variation of this, which would be useful in some elliptic curve > calculations, would be a function > RR(x).nearby_rational_whose_denominator_is_a_perfect_square(). > > For either problem, is there a better solution than going through the > continued fraction convergents until o

[sage-support] Re: Putting parentheses around -1.

2008-01-25 Thread Paul Zimmermann
inconsistent or wrong results. If one wants that (-1)^(1/3) simplifies to -1, the only clean solution I see is to write a special function simplify_real to do that, but be prepared to see inconsistent results. Paul Zimmermann --~--~-~--~~~---~--~~ To post to this

[sage-support] Re: Putting parentheses around -1.

2008-01-23 Thread Paul Zimmermann
(2/(3*sqrt(3)) + 10/27)^(1/3) - 2/(9*(2/(3*sqrt(3)) + 10/27)^(1/3)) + 1/3 Quiz: how to simplify that expression to 1 within SAGE? I've tried simplify, and radical_simplify, but neither succeeds... Paul Zimmermann --~--~-~--~~~---~--~~ To post to this gr

[sage-support] Re: int / Integer question

2008-01-22 Thread Paul Zimmermann
27; is much faster for large numbers. Would it be possible to extend long by new methods like is_square, and get rid of Integer? I guess 'long' is based on GMP too, does it make sense to have two concurrent interfaces to GMP integers? Paul Zimmermann --~--~-~--~~~

[sage-support] Re: int / Integer question

2008-01-22 Thread Paul Zimmermann
John, > sage: [q for q in range(100) if q.is_square()] > > --rather, one has to do this > > sage: [q for q in range(100) if Integer(q).is_square()] > [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] > > or even this: > sage: [Integer(q) for q in range(100) if Integer(q).is_square()] > [0, 1, 4, 9,

[sage-support] Re: find smallest integer to meet certain inequalities...

2008-01-21 Thread Paul Zimmermann
point should give you the number of corrections steps (more probably 0 or 1). Paul Zimmermann --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this

[sage-support] Re: Doc Day 1 announcement: January 17th, 2008, 9am-5pm PST

2008-01-16 Thread Paul Zimmermann
> I have 2 documentation requests: > [...] I have a 3rd one: I am really missing a "SEE ALSO" field (or whatever you want to call it) in the online documentation. It would be quite useful to point users to related commands. Paul --~--~-~--~~~---~--~~ To post to t

[sage-support] Re: associativity of addition on ell. curves

2008-01-12 Thread Paul Zimmermann
Dear Andrzej, > Im impressed again. Thank you so much > I had only a rough idea and you are realy effective in SAGE (too). > This time I have no additional concrete questions > but I'm strongly interested in your general opinion > concerning the comparison MAPLE-SAGE (any links?) for flo

[sage-support] Re: associativity of addition on ell. curves

2008-01-11 Thread Paul Zimmermann
) sage: I = singular.ideal([repr(eq1), repr(eq2), repr(eq3)]) sage: I2 = I.groebner() sage: singular.reduce(repr(n12), I2) 0 In particular: (1) is there a better way to normalize a rational expression that calling factor? Apparently numerator alone does not do the job

[sage-support] Re: associativity of addition on ell. curves

2008-01-09 Thread Paul Zimmermann
. This is quite useful for the user who is not aware of Gröbner bases (or the aware-user who prefers a simple command). Does a similar command exist in SAGE? Paul Zimmermann --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To u

[sage-support] Re: Pexpect: pty.fork() failed: out of pty devices

2007-12-28 Thread Paul Zimmermann
es. > Also, is there a way to rewrite one_curve using popen instead of pexpect? I'm not sure it's worth the effort. It would be much better to write an interface at the C level (see ticket #1550) if feasible. Paul Zimmermann --~--~-~--~~~---~--~~ To

[sage-support] Pexpect: pty.fork() failed: out of pty devices

2007-12-27 Thread Paul Zimmermann
< in552.sage >& log & where the file in552.sage, and the auxiliary files Primes.sage and aliquot.sage can be downloaded from http://www.loria.fr/~zimmerma/tmp/xxx (replace xxx by in552.sage, ...) The problem will occur after a few minutes. Any idea? Paul Zimmermann PS: I could not se

[sage-support] Re: Sage-2.9

2007-12-18 Thread Paul Zimmermann
e. > Turning that off will *probably* solve the problem. by the way, I noticed while compiling sage-2.9 from source on my laptop (Pentium M) that ATLAS ran MANY tuning tests, which did take VERY long. Wouldn't it be possible to use some default machine parameters, like GMP does?

[sage-support] Re: Bessel argument order

2007-12-12 Thread Paul Zimmermann
> > even better would be to adopt a computational model such that all > > numerical computations can give only *one* correct result. Then you > > could simply compare to the expected result with utilities like "diff". > > That would be nice but isn't realistic, since Sage includes systems like >

[sage-support] Re: Bessel argument order

2007-12-12 Thread Paul Zimmermann
. even better would be to adopt a computational model such that all numerical computations can give only *one* correct result. Then you could simply compare to the expected result with utilities like "diff". Paul Zimmermann --~--~-~--~~~---~--~~ To post to t

[sage-support] Re: Questions about solve()

2007-12-08 Thread Paul Zimmermann
> By the way, we'll definitely want to create an arbitrary precision find_root > using MPFR etc. at some point -- that will be very exciting. (The above is > just supposed to do some wimpy machine precision root finding.) a possible starting point is http://komite.net/laurent/pro/these-20070228

[sage-support] Re: Questions about solve()

2007-12-08 Thread Paul Zimmermann
> One interesting thing is that I made it so that > > f.find_root(a,b) > > works even if the sign of f(a) and f(b) are the same. In that case, > it will find a min or max of f on the interval, and use that as a new > endpoint as input to the root finding algorithm. The root finder > itsel

[sage-support] Re: Weaning

2007-12-07 Thread Paul Zimmermann
// N Out[3]= 3.14159 In[7]:= Pi + E // N + 5 // N Out[7]= (5. + N)[5.85987] Paul Zimmermann --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, v

[sage-support] reference manual

2007-11-08 Thread Paul Zimmermann
On http://sagemath.org/doc/html/ref/module-sage.calculus.calculus.html one can read: sage: var('x, u, v') (x, u, v) sage: f = expand((2*u*v^2-v^2-4*u^3)^2 * (-u)^3 * (x-sin(x))^3) # not tested -- trac #946 This seems to work now: sage: var('x, u, v') sage: f = expand((2*u*v^2-v^2-4*u^3)^2

[sage-support] cpu time

2007-11-07 Thread Paul Zimmermann
very useful (my machine has a load of 3-4). It would be more useful to have to cpu time used by the spawned processes, or simply the total cpu time used by SAGE and those processes. Paul Zimmermann def FindGroupOrder(p,s): K = GF(p) v = K(4*s) u = K(s^2-5) x = u^3 b = 4*x*v a = (v-u

[sage-support] Re: problem installing SAGE 2.8.10

2007-11-02 Thread Paul Zimmermann
-- sage: x x sage: y --- Traceback (most recent call last) /users/spaces/zimmerma/Adm/Confs/07/SAGEdays6/ in () : name 'y' is not defined >From a