Re: [sage-support] Compile Sage 8.9 on Opensuse Tumbleweed:Error building gfortran-7.4.0

2019-12-26 Thread 'Shing Hing Man' via sage-support
ng On Wednesday, December 25, 2019 at 5:25:03 PM UTC, Dima Pasechnik wrote: > > On Wed, Dec 25, 2019 at 10:13 PM 'Shing Hing Man' via sage-support > > wrote: > > > > > > Hi, > > Below is a grep near a "neighbourbood" gfortran in my co

Re: [sage-support] Compile Sage 8.9 on Opensuse Tumbleweed:Error building gfortran-7.4.0

2019-12-25 Thread 'Shing Hing Man' via sage-support
$(PYTHON) | setuptools pip six deps_scipoptsuite = $(MP_LIBRARY) bliss readline | cmake deps_scipy = $(PYTHON) $(BLAS) gfortran numpy | pip deps_scons = $(PYTHON) deps_send2trash = $(PYTHON) | pip -- vers_gf2x = 1.2.p0 vers_gfan = 0.6.2.p1 vers_gfortran = 7.4.0 vers_giac = 1.5.0.63.p0 vers_gi

Re: [sage-support] Compile Sage 8.9 on Opensuse Tumbleweed:Error building gfortran-7.4.0

2019-12-21 Thread 'Shing Hing Man' via sage-support
sion 7, the package is > called gcc-fortran. > > HTH > Dmitrii > > On Sat, 21 Dec 2019, 17:12 'Shing Hing Man' via sage-support, < > sage-s...@googlegroups.com > wrote: > >> Hi, >> When I compile Sage 8.9 on Opensuse Tumbleweed, there is a p

[sage-support] Compile Sage 8.9 on Opensuse Tumbleweed:Error building gfortran-7.4.0

2019-12-21 Thread &#x27;Shing Hing Man' via sage-support
Hi, When I compile Sage 8.9 on Opensuse Tumbleweed, there is a problem building gfortran-7.4.0 : static library. */"; echo "GROUP ( libgcc_s.so.1 -lgcc )" ) > ./libgcc_s.so /usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc /usr/bin/ld: i386 architecture of inp

[sage-support] Re: Using the simple server API

2010-07-24 Thread Shing Hing Man
Hi, Thanks for the patch to fix simple API !I have tested the patch in sage 4.5.1. Shing On Jun 24, 1:29 pm, "David Poetzsch-Heffter" wrote: > Hi! > > I know this thread is a little old but running theSimpleSage ServerAPI > is also important for me. > > I fixed the bugs mentioned and ope

[sage-support] Re: How to list (and remove) loaded objects in a sage session

2010-01-17 Thread Shing Hing Man
Thanks for all the reply! show_identifiers() and reset() are what I am looking for. But it is good to learn that Python does garbage collection in a way similar to Java. Shing On Jan 17, 12:35 am, William Stein wrote: > 2010/1/16 Shing Hing Man : > > > Hi, > >   In a Sa

[sage-support] How to list (and remove) loaded objects in a sage session

2010-01-16 Thread Shing Hing Man
Hi, In a Sage session (within notebook or command console) , how to list all the loaded objects and how to remove them from the session ? I would like to reuse a connection using the simple server API. From time to time, I need to clear loaded objects in the session. Thanks in advance for any

[sage-support] Re: How to convert an element in a polynomial ring to sage expression

2010-01-10 Thread Shing Hing Man
Thanks for the solution! Shing On Jan 9, 9:24 pm, William Stein wrote: > On Sat, Jan 9, 2010 at 1:11 PM, Shing Hing Man wrote: > > > Hi, > >     First, I define the ring of polynomial over the rationals, S. > > Then define a polynomial g in S. > > Is there a simpl

[sage-support] How to convert an element in a polynomial ring to sage expression

2010-01-09 Thread Shing Hing Man
Hi, First, I define the ring of polynomial over the rationals, S. Then define a polynomial g in S. Is there a simple way to convert g totype 'sage.symbolic.expression.Expression' ? sage: S. = PolynomialRing(QQ);S Univariate Polynomial Ring in x over Rational Field sage: g = x^3 - 11*

[sage-support] Re: How to produce png image with transparent background with latex.eval

2010-01-03 Thread Shing Hing Man
Hi Jason, Thanks for the reply! But I would like the png file of a latex expression, not a plot, to have transparent background. Shing On Jan 2, 9:46 pm, Jason Grout wrote: > Shing Hing Man wrote: > > I am using Sage 4.0.2.   The myImage.png produced by the following > > comm

[sage-support] How to produce png image with transparent background with latex.eval

2010-01-02 Thread Shing Hing Man
I am using Sage 4.0.2. The myImage.png produced by the following command has a white background. latex.eval("$\\frac{1}{2}$", {}, filename="/home/foo/myImage.png") Is it possible to have transparent background ? Thanks in advance for any assistance! Shing -- To post to this group, send emai

[sage-support] Re: Using the simple server API

2009-12-20 Thread Shing Hing Man
I have just upgraded from Sage 4.0.2 to Sage 4.2.1 and have encountered the same error mentioned by Stefan. Is there a way to fix the problem ? Thanks in advance of any assistance! Shing On Dec 18, 7:59 pm, William Stein wrote: > On Fri, Dec 18, 2009 at 11:58 AM, Stefan wrote: > > Hi Robert,

[sage-support] Re: question about using Sage with Pydev

2009-09-24 Thread Shing Hing Man
I have the same problem as Greg. Namely, when I run the following in PyDev from sage.rings.arith import factor print factor(266) I get the following error. ImportError: No module named rings.arith I am using Eclipse 3.5 and Pydev 1.5.0, Sage 4.0.2. In my Pydev Python project, I have 1) set

[sage-support] Re: Polynomial over a finite field using integer coefficients

2009-09-22 Thread Shing Hing Man
Thanks for the reply! Just one more question. In general, if k is a finite field, what is k(i), where i is an integer, suppose to be ? The following example suggests k(i) will be the elements in the base field as i varies. sage: k. = GF(9) sage: for i in [0..8]: print k(i) : 0 1 2 0 1 2 0

[sage-support] Polynomial over a finite field using integer coefficients

2009-09-22 Thread Shing Hing Man
Conside the finite field F=GF(9),say, and the polynomial ring F[x]. The elements of F are listed below. sage: k. = GF(9) sage: for x in k:print x 0 2*a a + 1 a + 2 2 a 2*a + 2 2*a + 1 1 sage: R = PolynomialRing(k,'x') sage: sage: x = R.0 We can think of elements of k as integers from 0 to

[sage-support] Re: Eigenvalues and vectors in radical format

2009-09-21 Thread Shing Hing Man
Grout wrote: > Shing Hing Man wrote: > > In Sage, the eigenvalues and vectors (over a  Rational matrix) returns > > the answer in numerical format. > > It's not really numerical format.  It's the same as the Root objects in > Mathematica or Maple.  Recent versions

[sage-support] Eigenvalues and vectors in radical format

2009-09-21 Thread Shing Hing Man
In Sage, the eigenvalues and vectors (over a Rational matrix) returns the answer in numerical format. Is it possible to returns the answer in radical format ? I am aware that I can use the Maxima eigenvectors function in Sage to get the answer in radical format. It is better if I do need to depen

[sage-support] Re: How to test if an algebraic number is real

2009-01-05 Thread Shing Hing Man
> > so perhaps you should upgrade? > > John Cremona > > 2009/1/4 Shing Hing Man : > > > > > Hi, > >  I would like to test if  an eigenvalue of a matrix over the > > rationals is a real number. > > (or The roots of the characteristic polynomial  are

[sage-support] How to test if an algebraic number is real

2009-01-04 Thread Shing Hing Man
Hi, I would like to test if an eigenvalue of a matrix over the rationals is a real number. (or The roots of the characteristic polynomial are all real.) I am using x in RR Somehow, when x=2i, 'x in RR' produced the following error. Thanks in advance for any assistance! Shing PS

[sage-support] Re: Latex expression to png

2009-01-04 Thread Shing Hing Man
, Jan 3, 2009 at 2:08 PM, Shing Hing Man wrote: > > > > > Is there a command in SAGE that converts a latex expression to png (or > > gif) directly. > > > The following post in the archive has a workaround. > > > ttp://groups.google.com/group/sage-support/brows

[sage-support] Latex expression to png

2009-01-03 Thread Shing Hing Man
Is there a command in SAGE that converts a latex expression to png (or gif) directly. The following post in the archive has a workaround. ttp://groups.google.com/group/sage-support/browse_thread/thread/570022e72a22d3bd/517d51a58abc67f8?lnk=gst&q=Latex+to+png#517d51a58abc67f8 I wonder if there

[sage-support] Re: Latex of a product of polynomials with simplification

2008-08-23 Thread Shing Hing Man
Thanks for all the replies! Shing On Aug 23, 9:28 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On Sat, Aug 23, 2008 at 12:50 PM, daveloeffler <[EMAIL PROTECTED]> wrote: > > >> How to get the Latex expression of fg without expanding the product ? > >> ie (1 + t + 2 t^{2}) (1+t) . > > > Can't

[sage-support] Latex of a product of polynomials with simplification

2008-08-23 Thread Shing Hing Man
Hi, Consider polynomials f = 1 +t + 2*t^2 g=1+t over R. = PolynomialRing(GF(7)); How to get the Latex expression of fg without expanding the product ? ie (1 + t + 2 t^{2}) (1+t) . latex( fg) returns 2 t^{3} + 3 t^{2} + 2 t + 1 Thanks in advance for any assistance! I am using Sage 3.0,6.

[sage-support] Re: Why standalone Python/Sage scripts take longer to run ?

2008-07-21 Thread Shing Hing Man
Thanks for all the reply! Shing On Jul 21, 5:26 pm, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > On Jul 20, 2008, at 1:24 PM, Shing Hing Man wrote: > > > > > > > If I submit a command that takes a long time to run, > > > eg > > (1)  http://l

[sage-support] Re: Why standalone Python/Sage scripts take longer to run ?

2008-07-20 Thread Shing Hing Man
If I submit a command that takes a long time to run, eg (1) http://localhost:8000/simple/compute?session=(session)&code=factor(2^1000 -1) then the immediately returned JSON will have status equals computing. I have modified my Java program, so that after (1) is submitted, I keep querying SAG

[sage-support] Re: Running a sage script from command line caused a run away pocess

2008-05-31 Thread Shing Hing Man
away pocess > To: sage-support@googlegroups.com > Date: Saturday, 31 May, 2008, 10:03 PM > On Sat, May 31, 2008 at 6:56 AM, Shing Hing Man > <[EMAIL PROTECTED]> wrote: > > > > Thanks for the suggestion! > > Last week, I downloaded 3.0.2 and the build failed >

[sage-support] Re: Running a sage script from command line caused a run away pocess

2008-05-31 Thread Shing Hing Man
Thanks for the suggestion! Last week, I downloaded 3.0.2 and the build failed probably because the gcc on my PC is version 3.3.5. I need to upgrade my Linux distribution before I can retry installing sage 3.0.2. Shing Home page : http://www.lombok.demon.co.uk/ --- On Sat, 31/5/08, Wil