Re: [sage-support] Re: how to do ?

2019-05-25 Thread henri.gir...@gmail.com
I did your command and it is compiling. My problem was I have two sagemath, and I forget to do ./sage thanks it works Le 25/05/2019 à 20:39, John H Palmieri a écrit : On Saturday, May 25, 2019 at 3:31:00 AM UTC-7, HG wrote: sage -i database_odlyzko_zeta doesn't work in

[sage-support] Re: how to do ?

2019-05-25 Thread John H Palmieri
On Saturday, May 25, 2019 at 3:31:00 AM UTC-7, HG wrote: > > sage -i database_odlyzko_zeta > > doesn't work in sagemath-8.8beta6 ? > > How can I do it ? > > Please provide more details: what platform? What went wrong. It worked for me, by the way: $ ./sage -i database_odlyzko_zeta ...

[sage-support] Re: how to do this in SAGE

2017-02-13 Thread valeriodea
Thanks for the explanations. I now know how to use the tab completion in SAGE and it's useful. Best, Valerio On Wednesday, February 8, 2017 at 4:21:31 PM UTC-6, Simon King wrote: > > Hi! > > On 2017-02-08, valer...@gmail.com > wrote: > > Is there a difference between

[sage-support] Re: how to do this in SAGE

2017-02-08 Thread Simon King
Hi! On 2017-02-08, valerio...@gmail.com wrote: > Is there a difference between > return expand(f^2) > and > return (g^2).expand() > or are they perfect synonyms? SageMath's language is Python, in particular it is object oriented. Personally, I'd always prefer calling a

[sage-support] Re: how to do this in SAGE

2017-02-08 Thread Dima Pasechnik
On Wednesday, February 8, 2017 at 6:45:41 PM UTC, valer...@gmail.com wrote: > > Thank you to the people who responded, all answers were helpful. > > Is there a difference between > return expand(f^2) > and > return (g^2).expand() > or are they perfect synonyms? > the documentation of expand()

[sage-support] Re: how to do this in SAGE

2017-02-08 Thread valeriodea
Thank you to the people who responded, all answers were helpful. Is there a difference between return expand(f^2) and return (g^2).expand() or are they perfect synonyms? The same question for lambda f: (f^2).expand() (in Simon's answer): is the lambda construction just a shortcut, equivalent

[sage-support] Re: how to do this in SAGE

2017-02-07 Thread Simon King
Hi, On 2017-02-07, valerio...@gmail.com wrote: > I have not been able to use f as a parameter. To use a simpler example, > what is the SAGE code corresponding to this Mathematica code: > f[x_]:=1+x+x^2 > g[x_]:=1+x+x^2+x^3 > Ex[f_]:=Expand[f[x]^2] > Ex[f] > > 1 + 2 x + 3

Re: [sage-support] Re: how to do this in SAGE

2017-02-07 Thread David Joyner
On Tue, Feb 7, 2017 at 7:14 AM, wrote: > > > On Saturday, February 4, 2017 at 4:46:38 PM UTC-6, Dima Pasechnik wrote: >> >> >> >> On Saturday, February 4, 2017 at 8:48:22 PM UTC, valer...@gmail.com wrote: >>> >>> I would like to know the right way to do in SAGE what I am

[sage-support] Re: how to do this in SAGE

2017-02-07 Thread Dima Pasechnik
On Tuesday, February 7, 2017 at 12:14:49 PM UTC, valer...@gmail.com wrote: > > > > On Saturday, February 4, 2017 at 4:46:38 PM UTC-6, Dima Pasechnik wrote: >> >> >> >> On Saturday, February 4, 2017 at 8:48:22 PM UTC, valer...@gmail.com >> wrote: >>> >>> I would like to know the right way to do

[sage-support] Re: how to do this in SAGE

2017-02-07 Thread valeriodea
On Saturday, February 4, 2017 at 4:46:38 PM UTC-6, Dima Pasechnik wrote: > > > > On Saturday, February 4, 2017 at 8:48:22 PM UTC, valer...@gmail.com wrote: >> >> I would like to know the right way to do in SAGE what I am currently >> doing with Mathematica in these two examples (I actually know

[sage-support] Re: how to do this in SAGE

2017-02-04 Thread Dima Pasechnik
On Saturday, February 4, 2017 at 8:48:22 PM UTC, valer...@gmail.com wrote: > > I would like to know the right way to do in SAGE what I am currently doing > with Mathematica in these two examples (I actually know how to do the first > one in SAGE, but probably not in the best way): > 1) Finding

[sage-support] Re: How to do symbolic algebra in GF(2)={0,1}

2014-03-11 Thread Pierre
You can try sage: x= polygen(GF(2), a) and try a few expressions involving x. For example sage: 2*x 0 since 2=0 in GF(2). Pierre On Tuesday, March 11, 2014 3:25:04 PM UTC+1, Prakash Dey wrote: I am new to sage. x=var('a') print x*x*x*x+x*x*x+x*x+x How to do this symbolic algebra in

[sage-support] Re: How to do symbolic algebra in GF(2)={0,1}

2014-03-11 Thread Prakash Dey
On Tuesday, March 11, 2014 7:55:04 PM UTC+5:30, Prakash Dey wrote: I am new to sage. x=var('a') y=var('b') print x+y How to do this symbolic algebra in GF(2)={0,1} ? -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from

[sage-support] Re: How to do symbolic algebra in GF(2)={0,1}

2014-03-11 Thread Prakash Dey
Thanks. But x= polygen(GF(2), a) y= polygen(GF(2), b) print x+y --- gives error How to do this symbolic algebra in GF(2)={0,1} ? My need is the following: I have a recurrence relation like z[t+6]=z[t]+z[t+3]+z[t+4]*z[t+5] in GF(2) taking z[0]=a0,z[1]=a1,...,z[5]=a5 i want

Re: [sage-support] Re: How to do symbolic algebra in GF(2)={0,1}

2014-03-11 Thread Christian Nassau
You could work in the polynomial ring generated by the ak, modulo the relation ak**2 = ak: P=PolynomialRing(GF(2),[a%d % i for i in (0,..,5)]) I=P.ideal([u*u-u for u in P.gens()]) Q=P.quotient(I) @cached_function def z(k): if k 6: return Q.gens()[k] return z(k-6)+z(k-3)+z(k-2)*z(k-1)

[sage-support] Re: How to do symbolic algebra in GF(2)={0,1}

2014-03-11 Thread Prakash Dey
Thanks. It solves my problem. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [sage-support] Re: How to do symbolic algebra in GF(2)={0,1}

2014-03-11 Thread Nils Bruin
On Tuesday, March 11, 2014 11:26:13 AM UTC-7, Christian Nassau wrote: You could work in the polynomial ring generated by the ak, modulo the relation ak**2 = ak For which sage wraps a specially optimized library PolyBoRi: sage: R.a,b,c=BooleanPolynomialRing(3) sage: (a+b+c)*(a+b) a*c + a

[sage-support] Re: How to do symbolic calculations with complex numbers

2010-08-07 Thread Jason Grout
On 8/7/10 12:25 PM, tontaube wrote: Hello everybody! Can I do calculations with complex numbers that are defined only by symbols? Let's say I'd like to do the following: sage: var(R1 X1 R2 X2) sage: Z1 = R1 + X1*i sage: Z2 = R2 + X2*i sage: Z = Z1 + Z2 sage: print Z sage: Z.imag() R1 + R2 +

[sage-support] Re: How to do it in cython?

2010-06-12 Thread Simon King
On 12 Jun., 08:56, Robert Bradshaw rober...@math.washington.edu wrote: Sage is preparsed. ... ... and the preparser is not used on .pyx and .py files. So, when you write 3 in a .pyx file, it becomes a python int, but if you write 3 on the Sage command line, it is interpreted (by the preparser)

[sage-support] Re: How to do: is_Integer(sqrt(a^2+b^2))

2008-09-26 Thread mabshoff
On Sep 26, 12:06 am, Robert Bradshaw [EMAIL PROTECTED] wrote: SNIP Indeed!  I like Mike Hansen's (or your) proposal to get rid of them all from the global namespace, and replace them only by is_lowercase_method_name functions that are all conceptually meaningful.   Of course leave

[sage-support] Re: How to do: is_Integer(sqrt(a^2+b^2))

2008-09-25 Thread William Stein
On Thu, Sep 25, 2008 at 5:33 PM, Quicksilver_Johny [EMAIL PROTECTED] wrote: If c=sqrt(a^2+b^2) How would I check if c is an integer in order to get a true/false value. I tried is_Integer(ZZ(c)), this returns true when c is an integer, but ZZ(c) returns an error when c is not an integer.

[sage-support] Re: How to do: is_Integer(sqrt(a^2+b^2))

2008-09-25 Thread Robert Bradshaw
On Sep 25, 2008, at 5:43 PM, William Stein wrote: On Thu, Sep 25, 2008 at 5:33 PM, Quicksilver_Johny [EMAIL PROTECTED] wrote: If c=sqrt(a^2+b^2) How would I check if c is an integer in order to get a true/false value. I tried is_Integer(ZZ(c)), this returns true when c is an integer,