[sage-support] Re: how to controll precision when show'ing formulas?

2009-06-23 Thread Robert Bradshaw
On Jun 22, 2009, at 6:01 AM, kcrisman wrote: I want that show(function) would give me just 1 precision digit after comma how could I achieve this? You can use Python's string formatting:http://docs.python.org/ library/stdtypes.html#string-formatting To get floating-point numbers to

[sage-support] Is it possible to disable maxima automated simplification ?

2009-06-23 Thread Nicolas
I am in the writing of a program that deals with rather lengthy symbolic expressions involving unknown functions and differentiation. When running commands like derivatives, it seems that maxima automatically runs into place to simplify the obtained expressions. (This is consistent with the

[sage-support] Re: Is it possible to disable maxima automated simplification ?

2009-06-23 Thread William Stein
On Tue, Jun 23, 2009 at 9:40 AM, Nicolasnicolas.fresseng...@gmail.com wrote: I am in the writing of a program that deals with rather lengthy symbolic expressions involving unknown functions and differentiation. When running commands like derivatives, it seems that maxima automatically runs

[sage-support] Fwd: misprint

2009-06-23 Thread William Stein
-- Forwarded message -- From: Ron Evans rev...@math.ucsd.edu Date: Tue, Jun 23, 2009 at 3:42 AM Subject: misprint To: William Stein wst...@gmail.com I probably shouldn't be bothering you with trivialities, but the last word on the first line is misspelled.  rje

[sage-support] Re: EC search problem

2009-06-23 Thread John Cremona
On Jun 22, 7:59 pm, adam mohamed adam.hariv...@googlemail.com wrote: Hi, Thanks for the very quick response. I will try that tomorrow. Now I understand the problem that we met when running the same code in a linux machine. I am doing this search for cryptographic applications, so I

[sage-support] jsmol black screen advances

2009-06-23 Thread Offray Vladimir Luna Cárdenas
Hi all, I have been working successfully with the last version binary version of Sage on Arch Linux. And old problem was solved now and was related with the empty jsmol screen for plots. It seems that it was related with the java version on Linux. With openjdk6 I got the problem but with jre

[sage-support] how to solve a matrix equation

2009-06-23 Thread na...@math.hr
Hello, I'm trying to solve a matrix Lyapunov equation A*X+X*A^T=-I, where A is given by: [ 0 0 0 0 1 -1 0 0] [ 0 0 0 0 0 1 -1 0] [ 0 0 0 0 0 0 1 -1] [ 0 0 0 0 0 0 0 1] [-1 0 0 0 a1 0 0 0] [ 1 -1 0 0 0 a2 0 0] [ 0 1 -1 0 0 0 a3 0] [ 0 0 1 -1 0 0 0 a4]

[sage-support] Sage installation problem: Symbol not found: _iconv

2009-06-23 Thread Oliver
Hi, I downloaded Sage for Mac OS X 10.5 and extracted it. However, when I try to run it I get the output appended below. Running %upgrade does not fix this. Any advice on how to get it running? Cheers, Oliver -- | Sage Version

[sage-support] Re: Sage installation problem: Symbol not found: _iconv

2009-06-23 Thread William Stein
On Tue, Jun 23, 2009 at 10:36 AM, Oliveroliver.afr...@gmail.com wrote: Hi, I downloaded Sage for Mac OS X 10.5 and extracted it. Intel or PowerPC? What was the exact name of the dmg you However, when I try to run it I get the output appended below. Running %upgrade does not fix this.

[sage-support] Re: how to solve a matrix equation

2009-06-23 Thread Jason Grout
na...@math.hr wrote: Hello, I'm trying to solve a matrix Lyapunov equation A*X+X*A^T=-I, where A is given by: [ 0 0 0 0 1 -1 0 0] [ 0 0 0 0 0 1 -1 0] [ 0 0 0 0 0 0 1 -1] [ 0 0 0 0 0 0 0 1] [-1 0 0 0 a1 0 0 0] [ 1 -1 0 0 0 a2 0 0] [ 0 1 -1 0 0 0

[sage-support] Re: EC search problem

2009-06-23 Thread adam mohamed
Hi All, I solve the problem with the memory, thanks to William. But, now when I impose some strict conditions so that I have to toss say 100 times in order to hope for some curves to pop up, I am getting different kind of errors. I have attached the code and the error message I got hereby.

[sage-support] Re: API up

2009-06-23 Thread Mikie
Try it now. If someone puts an integral in that Sage can't caluclate it locks up my server. I am working on a fix. On Jun 18, 6:02 pm, Erik Lane erikl...@gmail.com wrote: The gif link is broken. Tries to use a private address. 192.168.1.101 That doesn't work with my computer, of course. I

[sage-support] Re: Sage installation problem: Symbol not found: _iconv

2009-06-23 Thread Oliver
Intel. The binary name was sage-4.0.2-OSX10.5-Intel-i386-Darwin.dmg On Jun 23, 2:10 pm, William Stein wst...@gmail.com wrote: On Tue, Jun 23, 2009 at 10:36 AM, Oliveroliver.afr...@gmail.com wrote: Hi, I downloaded Sage for Mac OS X 10.5 and extracted it. Intel or PowerPC?   What was the

[sage-support] Re: Sage installation problem: Symbol not found: _iconv

2009-06-23 Thread William Stein
On Tue, Jun 23, 2009 at 4:01 PM, Oliveroliver.afr...@gmail.com wrote: Intel. The binary name was sage-4.0.2-OSX10.5-Intel-i386-Darwin.dmg If you have XCode installed, what happens if you do ./sage -f libm4ri-20090617 -- William --~--~-~--~~~---~--~~ To post

[sage-support] Re: Sage installation problem: Symbol not found: _iconv

2009-06-23 Thread Oliver
Hi William, I do have XCode installed. I ran the command you suggested from the sage directory. It appeared to compile successfully (see output appended below). However, I still get the same error when running sage. Again, %upgrade does not fix it. Any idea what is causing this error? I'm not

[sage-support] Re: Sage installation problem: Symbol not found: _iconv

2009-06-23 Thread William Stein
On Tue, Jun 23, 2009 at 4:20 PM, Oliveroliver.afr...@gmail.com wrote: Hi William, I do have XCode installed. I ran the command you suggested from the sage directory. It appeared to compile successfully (see output appended below). However, I still get the same error when running sage.

[sage-support] Re: poly matrices

2009-06-23 Thread William Stein
On Tue, Jun 23, 2009 at 4:30 PM, William Steinwst...@gmail.com wrote: 2009/6/23 Emmanuel Thomé emmanuel.th...@gmail.com: I wonder what happens here: tiramisu ~ $ sage -- | Sage Version 4.0, Release Date: 2009-05-29        

[sage-support] Re: poly matrices

2009-06-23 Thread William Stein
2009/6/23 Emmanuel Thomé emmanuel.th...@gmail.com: I wonder what happens here: tiramisu ~ $ sage -- | Sage Version 4.0, Release Date: 2009-05-29                         | | Type notebook() for the GUI, and license() for

[sage-support] trigonometric equation

2009-06-23 Thread kirchhoff
How to find symbolic solution for a generic equation of this kind A*sin(x)+B*cos(x)+C=0 Thanks Renzo --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] Re: Build on Pardus 2009 beta of sage 4.0.2 (from source)

2009-06-23 Thread Scott
The package xorg-proto is also required to provide the X11 headers. On Jun 23, 9:41 am, Scott scotta_2...@yahoo.com wrote: The installation of the linux-headers package with pisi under Pardus Linux 2009Beta solved the above problem. --~--~-~--~~~---~--~~ To

[sage-support] Re: how to controll precision when show'ing formulas?

2009-06-23 Thread Jurgis
You can use Python's string formatting sage: '%.2f' % pi '3.14' as I said -- I use now string formatting via html http://ftp.akl.lt/users/jurgis/etc/formule_show_precision--how.png but I have to repeat the whole formula structure -- and this is inconvenient. any more proposals? :) could

[sage-support] Re: multiplying matrices/inverses

2009-06-23 Thread davidloeffler
In the third one, try using the polynomial quotient ring with modulus x^2 + x + 1; the reason you aren't getting the output you expect is because x^3 - 1 is reducible over QQ, and QQ[x] / (x^3 - 1) isn't an integral domain. See below. (Or you could use number field arithmetic; Sage has a special

[sage-support] Re: multiplying matrices/inverses

2009-06-23 Thread kcrisman
On Jun 23, 12:34 pm, davidloeffler dave.loeff...@gmail.com wrote: In the third one, try using the polynomial quotient ring with modulus x^2 + x + 1; the reason you aren't getting the output you expect is because x^3 - 1 is reducible over QQ, and QQ[x] / (x^3 - 1) isn't an integral domain.

[sage-support] Re: Sage installation problem: Symbol not found: _iconv

2009-06-23 Thread Oliver
That didn't work, so I built from source. It now works. Thanks for the help! On Jun 23, 3:23 pm, William Stein wst...@gmail.com wrote: On Tue, Jun 23, 2009 at 4:20 PM, Oliveroliver.afr...@gmail.com wrote: Hi William, I do have XCode installed. I ran the command you suggested from the

[sage-support] Re: Build on Pardus 2009 beta of sage 4.0.2 (from source)

2009-06-23 Thread Scott
Pardus is an independent linux distro that does not use apt-get, yum or portage for packagemanagement. It is based in Turkey and has some ties to thier academic and military institutions. The package manager is pisi . This command installed the header files required by sage sudo pisi

[sage-support] Possible bug in typesetting

2009-06-23 Thread A Rojas
In a worksheet, input: R.a,b=PolynomialRing(QQ) T.x=LaurentSeriesRing(R) a*x+b*x With typesetting off, the output is (a+b)*x With typesetting on, it gives a+bx If T.x=PowerSeriesRing(R), it gives (a+b)x in both cases Is it a bug, or am I missing something?

[sage-support] graphviz installation problem in 4.0.1

2009-06-23 Thread Mike
Hello, I successfully built sage-4.0.1 on my laptop (Linux Mint ver. 6 Felicia for AMD_64) and also managed to install other packages (e.g. ginv, gnuplotpy) using 'sage -i pkg name'. But I hit a snag with graphviz-2.16.1.p0: --(snip from install.log)-- make[3]: Entering directory

[sage-support] not a valid Python identifier

2009-06-23 Thread Mikie
I am using a Python script that starts a twisted server. And have several Sage functions defined. Thus the Sage preparser is not available. Here is the the function for integrating def Integrate3a(exp1,exp2): s1=type(exp1);print s1 R1 = integrate(exp1,exp2)

[sage-support] Re: not a valid Python identifier

2009-06-23 Thread Mike Hansen
Hi, On Tue, Jun 23, 2009 at 1:33 PM, Mikiethephantom6...@hotmail.com wrote: The values are coming in as strings and I am converting them to calculus type.  It is kind of working, but when I put 2*x^2-x or 2*x**2-x I get not a valid Python identifier.  What is real strange is If I put

[sage-support] Re: not a valid Python identifier

2009-06-23 Thread Mikie
Mike, worked great. If you are ever near Colorado Springs you have a free lunch. On Jun 23, 3:07 pm, Mike Hansen mhan...@gmail.com wrote: Hi, On Tue, Jun 23, 2009 at 1:33 PM, Mikiethephantom6...@hotmail.com wrote: The values are coming in as strings and I am converting them to calculus

[sage-support] Re: poly matrices

2009-06-23 Thread Jason Grout
William Stein wrote: On Tue, Jun 23, 2009 at 4:30 PM, William Steinwst...@gmail.com wrote: 2009/6/23 Emmanuel Thomé emmanuel.th...@gmail.com: I wonder what happens here: tiramisu ~ $ sage -- | Sage Version 4.0, Release