Re: [sage-support] Freshly installed sage crashes

2023-08-15 Thread 'Michel VAN DEN BERGH' via sage-support


On Tuesday, August 15, 2023 at 12:42:04 PM UTC+2 Michel VAN DEN BERGH wrote:

On Tuesday, August 15, 2023 at 11:50:10 AM UTC+2 Jan Groenewald wrote:

Hi

A quick web search does not bring up results pointing at the sagemath 
package being broken on Ubuntu 22.04.
My guess is that it is something else on your system.

Regards,
Jan

On my laptop the sagemath package works.  However I have issues installing 
it on my desktop. An obvious guess is that the CPU is too old. It is an Intel 
Core 2 Duo E8400 (which was launched in January 2008).   One can imagine 
that the distro sage is compiled with certain optimizations which are not 
supported by my CPU.

Michel



I think I found a relevant report

https://groups.google.com/g/sage-devel/c/Lj-wx4xm0N4

The error reported there is similar to what I am seeing.

Michel

 


.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/9b394fdc-4de8-4703-af88-c2c6b03e5bfcn%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-15 Thread 'Michel VAN DEN BERGH' via sage-support


On Tuesday, August 15, 2023 at 11:50:10 AM UTC+2 Jan Groenewald wrote:

Hi

A quick web search does not bring up results pointing at the sagemath 
package being broken on Ubuntu 22.04.
My guess is that it is something else on your system.

Regards,
Jan

On my laptop the sagemath package works.  However I have issues installing 
it on my desktop. An obvious guess is that the CPU is too old. It is an Intel 
Core 2 Duo E8400 (which was launched in January 2008).   One can imagine 
that the distro sage is compiled with certain optimizations which are not 
supported by my CPU.

Michel



.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/e500d3db-2bce-43c3-ac76-3c91db899b3cn%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-15 Thread 'Michel VAN DEN BERGH' via sage-support


On Tuesday, August 15, 2023 at 8:11:35 AM UTC+2 Michel VAN DEN BERGH wrote:

On Monday, August 14, 2023 at 10:45:32 AM UTC+2 Henri Girard wrote:

Did you make a link to your compiled version ?

I compiled sage in sage (which us the base dir) after I sudo ln -s /sage 
/usr/bin/sage then you get sage wide


I don't use the sage executable, but I do "import sage" inside the python 
interpreter (I only run scripts). This used to work with the distro sage, 
but I have not found how to make that work with the compiled sage.  Do you 
know how to achieve this?

Michel


I did some investigating and it seems that the distro sage installs sage as 
an honest module (it is in the file system as 
/usr/lib/python3/dist-packages/sage/) whereas the python that comes with 
the compiled sage has sage as a built-in module (it seems to be not in the 
file system). So it is not accessible to the global python I think.

The following is for the sage python.

$ sage --python
>>> import sage
>>> import inspect
>>> inspect.getfile(sage)
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/home/sage_user/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/inspect.py",
 
line 901, in getfile
raise TypeError('{!r} is a built-in module'.format(object))
TypeError: )> is a built-in module
>>> 



 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/cdf03f5c-2ad1-4d0a-a4c5-06a1b3fec632n%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-15 Thread 'Michel VAN DEN BERGH' via sage-support


On Monday, August 14, 2023 at 10:45:32 AM UTC+2 Henri Girard wrote:

Did you make a link to your compiled version ?

I compiled sage in sage (which us the base dir) after I sudo ln -s /sage 
/usr/bin/sage then you get sage wide


I don't use the sage executable, but I do "import sage" inside the python 
interpreter (I only run scripts). This used to work with the distro sage, 
but I have not found how to make that work with the compiled sage.  Do you 
know how to achieve this?

Michel


 

I installed the ubuntu version which is working fine : sudo apt install 
sagemath* jupyter* to get all libs working 

hope that can help

best

Henri
-- 

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...@googlegroups.com.

To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com
 
<https://groups.google.com/d/msgid/sage-support/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com?utm_medium=email_source=footer>
.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/31670cfe-19d9-4963-9054-32a6783ad24fn%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-14 Thread 'Michel VAN DEN BERGH' via sage-support


On Monday, August 14, 2023 at 1:41:51 PM UTC+2 Dima Pasechnik wrote:



On Mon, 14 Aug 2023, 09:32 'Michel VAN DEN BERGH' via sage-support, <
sage-s...@googlegroups.com> wrote:

I was unable to get the distro sage to work. I compiled sage from source 
and this solved the problem. Sad though since I would have preferred to use 
the distro version.


we are not involved in building distribution packages - this should be an 
Ubuntu bug report.


Fair enough. Next time I try and it still doesn't work I will file one! 

- 

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com
 
<https://groups.google.com/d/msgid/sage-support/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com?utm_medium=email_source=footer>
.

-- 
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...@googlegroups.com.

To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com
 
<https://groups.google.com/d/msgid/sage-support/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com?utm_medium=email_source=footer>
.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/d43226ab-d419-43d6-ad35-531f97c8c62an%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-14 Thread 'Michel VAN DEN BERGH' via sage-support
I was unable to get the distro sage to work. I compiled sage from source 
and this solved the problem. Sad though since I would have preferred to use 
the distro version.

On Sunday, August 13, 2023 at 6:55:16 PM UTC+2 Jan Groenewald wrote:

> Hi
>
> Does this happen with a user other than your own? Even root will do for a 
> quick test.
> Perhaps pip installed packages or other repositories are conflicting. Also 
> try 
> LC_ALL=C sage
>
> Regards,
> Jan
>
>
>
> On Sun, 13 Aug 2023 at 18:14, 'Michel VAN DEN BERGH' via sage-support <
> sage-s...@googlegroups.com> wrote:
>
>> Hi,
>>
>> Today I installed sage on Ubuntu 22.04 using 
>>
>> apt install sagemath
>>
>> Sadly after typing 'sage' the program crashes. The crash seems to be 
>> related to Cython. I am attaching the crash report.
>>
>> What are my options?
>>
>> Best regards,
>> Michel
>>
>>
>>
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/sage-support/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com.


[sage-support] Freshly installed sage crashes

2023-08-13 Thread 'Michel VAN DEN BERGH' via sage-support
Hi,

Today I installed sage on Ubuntu 22.04 using 

apt install sagemath

Sadly after typing 'sage' the program crashes. The crash seems to be 
related to Cython. I am attaching the crash report.

What are my options?

Best regards,
Michel




-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com.
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
[New LWP 422779]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x7ff9028ea49f in wait4 () from /lib/x86_64-linux-gnu/libc.so.6

Stack backtrace
---
No symbol table info available.
#1  0x7ff8ff1c30f4 in ?? ()
   from /usr/lib/python3/dist-packages/cysignals/signals.cpython-310-x86_64-linux-gnu.so
No symbol table info available.
#2  0x7ff8ff1c3256 in ?? ()
   from /usr/lib/python3/dist-packages/cysignals/signals.cpython-310-x86_64-linux-gnu.so
No symbol table info available.
#3  0x7ff8ff1c5f64 in ?? ()
   from /usr/lib/python3/dist-packages/cysignals/signals.cpython-310-x86_64-linux-gnu.so
No symbol table info available.
#4  
No symbol table info available.
#5  0x7ff8ab2d71f8 in primecount::PhiTiny::PhiTiny() ()
   from /lib/x86_64-linux-gnu/libprimecount.so.7
No symbol table info available.
#6  0x7ff8ab2d60da in ?? () from /lib/x86_64-linux-gnu/libprimecount.so.7
No symbol table info available.
#7  0x7ff902d2f47e in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#8  0x7ff902d2f568 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#9  0x7ff902974c85 in _dl_catch_exception ()
   from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#10 0x7ff902d36ff6 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#11 0x7ff902974c28 in _dl_catch_exception ()
   from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#12 0x7ff902d3734e in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#13 0x7ff9028906bc in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#14 0x7ff902974c28 in _dl_catch_exception ()
   from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#15 0x7ff902974cf3 in _dl_catch_error ()
   from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#16 0x7ff9028901ae in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#17 0x7ff902890748 in dlopen () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#18 0x5646cae6460b in ?? ()
No symbol table info available.
#19 0x5646cae630f7 in ?? ()
No symbol table info available.
#20 0x5646cad5f969 in ?? ()
No symbol table info available.
#21 0x5646cad4a2c1 in _PyEval_EvalFrameDefault ()
No symbol table info available.
#22 0x5646cad5f70c in _PyFunction_Vectorcall ()
No symbol table info available.
#23 0x5646cad4d8a2 in _PyEval_EvalFrameDefault ()
No symbol table info available.
#24 0x5646cad5f70c in _PyFunction_Vectorcall ()
No symbol table info available.
#25 0x5646cad47f52 in _PyEval_EvalFrameDefault ()
No symbol table info available.
#26 0x5646cad5f70c in _PyFunction_Vectorcall ()
No symbol table info available.
#27 0x5646cad47e0d in _PyEval_EvalFrameDefault ()
No symbol table info available.
#28 0x5646cad5f70c in _PyFunction_Vectorcall ()
No symbol table info available.
#29 0x5646cad47e0d in _PyEval_EvalFrameDefault ()
No symbol table info available.
#30 0x5646cad5f70c in _PyFunction_Vectorcall ()
No symbol table info available.
#31 0x5646cad47e0d in _PyEval_EvalFrameDefault ()
No symbol table info available.
#32 0x5646cad5f70c in _PyFunction_Vectorcall ()
No symbol table info available.
#33 0x5646cad5eb24 in ?? ()
No symbol table info available.
#34 0x5646cae3e4af in _PyObject_CallMethodIdObjArgs ()
No sym

[sage-support] What is the domain of a WeylGroup

2022-03-14 Thread 'Michel VAN DEN BERGH' via sage-support
Hi all,

I am trying to do a calculation with a Weyl group acting on its standard 
weight representation. However when I do 

sage: G=WeylGroup("E6") 
 
sage: dim(G.domain())  
  

the result is 8. So the domain is on the 6 dimensional weight 
representation, as I expected.

Unfortunately there appears to be no documentation on this. Hence my 
question here.

Can we work in some way with the weight representation of a Weyl group?

Kind regards,
Michel



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/d5f5d6af-f419-4cd8-82b6-a2deba73a130n%40googlegroups.com.


Re: [sage-support] Morphisms between free groups.

2022-02-06 Thread 'Michel VAN DEN BERGH' via sage-support
Now it seems "subs" does work. I must have done something wrong. Sorry for 
the noise.

On Friday, February 4, 2022 at 3:55:19 PM UTC+1 dim...@gmail.com wrote:

>
>
> On Fri, 4 Feb 2022, 11:02 David Joyner,  wrote:
>
>> On Fri, Feb 4, 2022 at 4:40 AM 'Michel VAN DEN BERGH' via sage-support
>>  wrote:
>> >
>> > Dear all,
>> >
>> > I need to do something which I thought would be quite simple. I have 
>> free groups
>> > F, G with generators x1,x2,x3,x4 and x,y respectively and I need to 
>> compute the image of an element under the homomorphism F-->G:x1->x, x2->y, 
>> x3->x, x4->y.
>> >
>> > I could not find anything in the manual about morphisms between free 
>> groups. I tried subs, but that does not work since the parents of the 
>> elements of F and G are (of course) different.
>> >
>> > The workaround I used is to work in the free group H with generators 
>> x1,x2,x3,x4,x,y and to use subs. However this is also inconvenient since I 
>> need the action of the braid group with 4 strands on F. It does not act on 
>> H because of the limitation "#strands=#generators".
>> >
>> > So this means I have to use only part of the braid group with 6 strands.
>> >
>> > In the end it all works but it is terribly hacky for some which seems 
>> to be a very clean thing to do.
>> >
>> > I would be grateful for any suggestions.
>>
>> Michel:
>>
>> One idea is to check out
>> https://doc.sagemath.org/html/en/reference/groups/sage/groups/braid.html
>>
>> Another idea is to download braid-1.1.tar.gz, untar in the pkg
>> subdirectory and type LoadPackage("braid");
>>
>
>
> most, if not all, functionality of braid is nowadays in
> https://gap-packages.github.io/MapClass/
>
> (which is in our gap_packages)
>
>
> FYI, the pkg subdir is inside sage-9*/local/share/gap
>> You can find a pdf manual for the braid package at
>> https://arxiv.org/abs/math/0304376
>> Currently, the link to braid-1.1.tar.gz at
>> https://www.gap-system.org/Packages/undep.html
>> is bad but I have a copy. Just email me privately.
>>
>> - David
>>
>> > Michel
>> >
>> >
>> > --
>> > 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...@googlegroups.com.
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/f7d460d0-390b-455d-ae90-72b105e8e926n%40googlegroups.com
>> .
>>
>> -- 
>> 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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/CAEQuuAVmSsLxS%2Bi50JNUqrK%3DUm%3DquJaZ2ueNuedAVzr6xKSMzQ%40mail.gmail.com
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/44926720-4e3c-4567-94a3-8e2e6ff90a4cn%40googlegroups.com.


[sage-support] Morphisms between free groups.

2022-02-04 Thread 'Michel VAN DEN BERGH' via sage-support
Dear all,

I need to do something which I thought would be quite simple. I have free 
groups
F, G with generators x1,x2,x3,x4 and x,y respectively and I need to compute 
the image of an element under the homomorphism F-->G:x1->x, x2->y, x3->x, 
x4->y.

I could not find anything in the manual about morphisms between free 
groups. I tried subs, but that does not work since the parents of the 
elements of F and G are (of course) different.

The workaround I used is to work in the free group H with generators 
x1,x2,x3,x4,x,y and to use subs. However this is also inconvenient since I 
need the action of the braid group with 4 strands on F. It does not act on 
H because of the limitation "#strands=#generators".

So this means I have to use only part of the braid group with 6 strands.

In the end it all works but it is terribly hacky for some which seems to be 
a very clean thing to do.

I would be grateful for any suggestions.
Michel
 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/f7d460d0-390b-455d-ae90-72b105e8e926n%40googlegroups.com.


[sage-support] Setting viewpoint in implicit_plot3d

2020-10-16 Thread Michel VAN DEN BERGH
Dear all,

I have this plot command which works fine

var('x,y,z')
G=implicit_plot3d(x^2+y^2-z^2==0.0001, (x,-1,1), (y,-1,1), 
(z,-1,1),plot_points=200,frame=False,viewer="threejs")

However I would like to change the default camera position and I cannot 
figure out how to do this...  I would be very grateful to anyone that can 
help me.

Michel

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/24c5cfb2-4cdd-41be-a91d-50b716c9c92fn%40googlegroups.com.


[sage-support] Missing file in scipy installation?

2011-04-11 Thread Michel
I was trying some functions to do root locus plots found on the net.
Doing this I found out that there seems to be something incomplete
about the scipy installation in sage.

from scipy.io.array_import import read_array

---
ImportError   Traceback (most recent call
last)

/home/vdbergh/SRC/ROOTLOCUS/ipython console in module()

/home/vdbergh/sage-4.6.2-linux-64bit-ubuntu_8.04.4_lts-x86_64-Linux/
local/lib/python2.6/site-packages/scipy/io/array_import.py in
module()
 25
 26 # Local imports.
--- 27 import numpyio
 28
 29 default = None

ImportError: No module named numpyio

-- 
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
URL: http://www.sagemath.org


[sage-support] Root locus plots

2011-04-10 Thread Michel
Hi,

I wonder if it is possible to do root locus plots in sage?

The root locus plot of a complex function is basically the zero locus
of the imaginary part but it should be equipped
with various markings.

Regards,
Michel


-- 
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
URL: http://www.sagemath.org


[sage-support] losing notebook access in VirtualBox

2010-01-03 Thread michel
I've experienced several times now losing access to the Sage notebook
files I've created using VirtualBox.

After a period of smooth use, I might try again to open Firefox from
within VirtualBox, and I'll be greeted with the message Firefox can't
establish a connection to the server at localhost:8000.  When I get
that message, I also cannot access those Notebook files with the usual
Firefox under Windows, nor with any other browser.

I am able to re-import the Sage appliance, and I can get myself up and
running again with a new set of Notebook files, but I seem to have
lost access to the first set.  They must still exist - but how to
access them?

I'm wondering if the problem could have anything to do with using the
Virtual Firefox to go online?  From within VirtualBox I had Notebook
open both locally and online in order to easily transfer files.  So
far it has always been after doing that that the message appears on
the next attempt to open Notebook from within VirtualBox.

Thanks,

Michel

-- 
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
URL: http://www.sagemath.org


[sage-support] Re: Plotting....

2009-12-06 Thread Michel
Thanks for the reply. But no. The problem is not due to the fact that
the function has a singularity. Indeed.

plot(20*log(abs((1+I*x)^4),10),(x,0,3))

fails with the same error which is incomprehensible to me.

On the other hand turning the expression into a lambda function made
it possible to plot it. Thanks for this practical advice.

I wish someone could explain this rationally to me.

20*log(abs((1+I*x)^4),10)

seems to be a perfectly fine symbolic expression so IMHO it should be
possible to plot it.

-- 
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
URL: http://www.sagemath.org


[sage-support] Plotting....

2009-12-05 Thread Michel
I never have any luck with plotting in Sage. The simplest plots fail.
For example the following

plot(20*log(abs((1+I*x)^4+4),10),(x,0,3))

fails with

TypeError: float() argument must be a string or a number

I don't see what's wrong with it.

-- 
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
URL: http://www.sagemath.org


[sage-support] Problems with Graphs

2009-11-20 Thread Michel
I am trying to use the Graph functionality in sage but it does not
quite work.

I do

G=DiGraph({0: {2: '3*x^2'}, 1: {0: '3/x'}, 2: {1: '6*x^2'}})
G.show()

A pgn viewer pops up showing the graph indeed. However:

(a) The vertex labels are cropped.
(b) No edge labels are shown.

Am I doing something wrong?

This Sage 4.2.1. Freshly compiled from source on Ubuntu 9.04.

-- 
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
URL: http://www.sagemath.org


[sage-support] Problems with Graphs

2009-11-20 Thread Michel
I am trying to use the Graph functionality in sage but it does not
quite work.

I do

G=DiGraph({0: {2: '3*x^2'}, 1: {0: '3/x'}, 2: {1: '6*x^2'}})
G.show()

A pgn viewer pops up showing the graph indeed. However:

(a) The vertex labels are cropped.
(b) No edge labels are shown.

Am I doing something wrong?

This Sage 4.2.1. Freshly compiled from source on Ubuntu 9.04.

-- 
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
URL: http://www.sagemath.org


[sage-support] Problems with Graphs

2009-11-20 Thread Michel
I am trying to use the Graph functionality in sage but it does not
quite work.

I do

G=DiGraph({0: {2: '3*x^2'}, 1: {0: '3/x'}, 2: {1: '6*x^2'}})
G.show()

A pgn viewer pops up showing the graph indeed. However:

(a) The vertex labels are cropped.
(b) No edge labels are shown.

Am I doing something wrong?

This Sage 4.2.1. Freshly compiled from source on Ubuntu 9.04.

-- 
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
URL: http://www.sagemath.org


Re: Fwd: [sage-support] Problems with Graphs

2009-11-20 Thread Michel
Thank you!

With these options I get decent looking graphs.

On Nov 21, 2:19 am, William Stein wst...@gmail.com wrote:
 -- Forwarded message --
 From: Kazuo Thow kazuo.t...@gmail.com
 Date: Fri, Nov 20, 2009 at 2:17 PM
 Subject: Re: [sage-support] Problems with Graphs
 To: William Stein wst...@gmail.com
 Cc: Kevin Clark kevinclark...@gmail.com

 Michel,

 There's an option in the plot() function, edge_labels, which is set to
 False by default.  If you use

  G=DiGraph({0:{2:'3*x^2'}, 1:{0:'3/x'}, 2:{1:'6*x^2'}})
  G.plot(edge_labels=True)

 then your graph should display properly with all its edge labels.  You
 can also change the colors of the edges to make the labels stand out
 better against their background:

  G.plot(edge_labels=True, edge_colors='#dd')

 And of course, '#dd' can be replaced by any hexadecimal code you
 want.  You can see more options like these by typing G.plot?.

 As for the vertex labels being cut off, setting graph_border=True will
 give enough padding around the border of the image.  Kevin Clark
 recently implemented a better fix for this issue, but I don't know if
 it's included in most recent release.  (It's definitely not included
 in the online version at sagenb.org.)

 Hope that helps,

 Kazuo

 On Fri, Nov 20, 2009 at 12:51 PM, William Stein wst...@gmail.com wrote:

  One of you guys could answer this poor user's support request...

  -- Forwarded message --
  From: Michel vdbe...@gmail.com
  Date: Fri, Nov 20, 2009 at 12:48 PM
  Subject: [sage-support] Problems with Graphs
  To: sage-support sage-support@googlegroups.com

  I am trying to use the Graph functionality in sage but it does not
  quite work.

  I do

  G=DiGraph({0: {2: '3*x^2'}, 1: {0: '3/x'}, 2: {1: '6*x^2'}})
  G.show()

  A pgn viewer pops up showing the graph indeed. However:

  (a) The vertex labels are cropped.
  (b) No edge labels are shown.

  Am I doing something wrong?

  This Sage 4.2.1. Freshly compiled from source on Ubuntu 9.04.

  --
  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
  URL:http://www.sagemath.org

  --
  William Stein
  Associate Professor of Mathematics
  University of Washington
 http://wstein.org

 --
 William Stein
 Associate Professor of Mathematics
 University of Washingtonhttp://wstein.org

-- 
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
URL: http://www.sagemath.org


Re: Fwd: [sage-support] Problems with Graphs

2009-11-20 Thread Michel
Unfortunately the default graphs turn out to be too small for the size
of the labels

Is there a canonical way to draw a Graph at (say) twice the default
size while
retaining the size of the edge labels?

I noticed that there is a 'dpi' option for the associate plot object
but that changes
the size of the edge labels as well. So there is no gain. Setting the
'fontsize'
option appears to have no effect on the edge_labels.


Thx.

-- 
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
URL: http://www.sagemath.org


[sage-support] Error gnome launching SAGE

2009-10-03 Thread Michel Barthélémy Billard Sirakawa

PC emachine
Fedora 11
Sage 4.1.1 fedora 10
Gconf is installed
t(he precompiled version on the sage's site
typed sage
then
notebook()
had to type a password for the admin. Done
said to connect web braowser to http://8000
nothing in the browser and that on the terminal :

/home/bilou/Téléchargement/sage/local/lib/python2.6/site-packages/twisted/persisted/sob.py:12:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, sys
2009-10-03 12:00:05+0200 [-] Log opened.
2009-10-03 12:00:06+0200 [-] twistd 8.2.0
(/home/bilou/Téléchargement/sage/local/bin/python 2.6.2) starting up.
2009-10-03 12:00:06+0200 [-] reactor class:
twisted.internet.selectreactor.SelectReactor.
2009-10-03 12:00:06+0200 [-] twisted.web2.channel.http.HTTPFactory
starting on 8000
2009-10-03 12:00:06+0200 [-] Starting factory
twisted.web2.channel.http.HTTPFactory instance at 0x69fe680
Erreur GConf : Le contact du serveur de configuration a échoué ; causes
possibles : vous n'avez pas activé le réseau TCP/IP pour ORBit ou des
verrous NFS non valides existent suite à un blocage du système. Voir
http://www.gnome.org/projects/gconf/ pour plus d'informations. (Détails - 
1: La connexion à la session a échoué : Did not receive a reply. Possible
causes include: the remote application did not send a reply, the message
bus security policy blocked the reply, the reply timeout expired, or the
network connection was broken.)
Erreur GConf : Le contact du serveur de configuration a échoué ; causes
possibles : vous n'avez pas activé le réseau TCP/IP pour ORBit ou des
verrous NFS non valides existent suite à un blocage du système. Voir
http://www.gnome.org/projects/gconf/ pour plus d'informations. (Détails - 
1: La connexion à la session a échoué : Did not receive a reply. Possible
causes include: the remote application did not send a reply, the message
bus security policy blocked the reply, the reply timeout expired, or the
network connection was broken.)
Erreur à l'affichage de l'URL : Opération non prise en charge


tried :
http://defindit.com/readme_files/gconfd_http_launch_howto.html
but the file :
.gconf/desktop/gnome/url-handlers/http/%gconf.xml
is empty on my machine

-- 
Michel Billard
60 avenue Dauphine
45100 Orléans

Vanitas vanitatum, et omnia vanitas.

http://sibylle.ouvaton.org
http://poeticopedia.ouvaton.org


--~--~-~--~~~---~--~~
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
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Error gnome launching SAGE

2009-10-03 Thread Michel Barthélémy Billard Sirakawa

Yes it works with http://localhost:8000, but the message of sage, when you
type ./sage is:
http:8000

 I do not understand french error messages, but what about
 http://localhost:8000
 and
 http://127.0.0.1:8000

 Is the sage notebook there?

 btw: the french messages are probably not from sage

 Robert Marik


 On 3 říj, 12:40, Michel Barthélémy Billard Sirakawa
 bi...@ouvaton.org wrote:
 PC emachine
 Fedora 11
 Sage 4.1.1 fedora 10
 Gconf is installed
 t(he precompiled version on the sage's site
 typed sage
 then
 notebook()
 had to type a password for the admin. Done
 said to connect web braowser tohttp://8000
 nothing in the browser and that on the terminal :

 /home/bilou/Téléchargement/sage/local/lib/python2.6/site-packages/twisted/persisted/sob.py:12:
 DeprecationWarning: the md5 module is deprecated; use hashlib instead
   import os, md5, sys
 2009-10-03 12:00:05+0200 [-] Log opened.
 2009-10-03 12:00:06+0200 [-] twistd 8.2.0
 (/home/bilou/Téléchargement/sage/local/bin/python 2.6.2) starting up.
 2009-10-03 12:00:06+0200 [-] reactor class:
 twisted.internet.selectreactor.SelectReactor.
 2009-10-03 12:00:06+0200 [-] twisted.web2.channel.http.HTTPFactory
 starting on 8000
 2009-10-03 12:00:06+0200 [-] Starting factory
 twisted.web2.channel.http.HTTPFactory instance at 0x69fe680
 Erreur GConf : Le contact du serveur de configuration a échoué ;
 causes
 possibles : vous n'avez pas activé le réseau TCP/IP pour ORBit ou des
 verrous NFS non valides existent suite à un blocage du système.
 Voirhttp://www.gnome.org/projects/gconf/pour plus d'informations.
 (Détails -
 1: La connexion à la session a échoué : Did not receive a reply.
 Possible
 causes include: the remote application did not send a reply, the message
 bus security policy blocked the reply, the reply timeout expired, or the
 network connection was broken.)
 Erreur GConf : Le contact du serveur de configuration a échoué ;
 causes
 possibles : vous n'avez pas activé le réseau TCP/IP pour ORBit ou des
 verrous NFS non valides existent suite à un blocage du système.
 Voirhttp://www.gnome.org/projects/gconf/pour plus d'informations.
 (Détails -
 1: La connexion à la session a échoué : Did not receive a reply.
 Possible
 causes include: the remote application did not send a reply, the message
 bus security policy blocked the reply, the reply timeout expired, or the
 network connection was broken.)
 Erreur à l'affichage de l'URL : Opération non prise en charge

 tried :http://defindit.com/readme_files/gconfd_http_launch_howto.html
 but the file :
 .gconf/desktop/gnome/url-handlers/http/%gconf.xml
 is empty on my machine

 --
 Michel Billard
 60 avenue Dauphine
 45100 Orléans

 Vanitas vanitatum, et omnia vanitas.

 http://sibylle.ouvaton.orghttp://poeticopedia.ouvaton.org
 



-- 
Michel Billard
60 avenue Dauphine
45100 Orléans

Vanitas vanitatum, et omnia vanitas.

http://sibylle.ouvaton.org
http://poeticopedia.ouvaton.org


--~--~-~--~~~---~--~~
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
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] strange lab behavior

2009-09-23 Thread michel

Hi,

I'm a high school math teacher experimenting with getting students to
use SAGE.  I've been successful in getting my students to open their
own notebook accounts.  I took my classes to the computer lab one day,
and during the session the kids started experiencing other names on
their accounts.  The names were all from our class.  No one had access
to anyone else's files, but suddenly the account name would shift to
someone else's.  And then yesterday in my regular classroom while I
was demoing SAGE, suddenly the name on my account changed to that of
one of my students.  She was not in class that period, and I have to
check to see if maybe she was using SAGE somewhere else on campus at
that time.  It was all very mysterious, and so I checked it out with
our tech guy.  I was wondering if the issue was our network.  His
response was, I wonder if technically we’re seen as just a singular
IP address (which is our proxy).  Because, everyone is using the same
proxy (thus same IP) to access this website.  So even though everyone
is making an individual login, it’s all going through the same IP
address.  Any ideas as to what's happening?

Thanks very much,

Michel Paul


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: strange lab behavior

2009-09-23 Thread michel

Yes, we are using sagenb.org.

I actually talked to our tech guy at one point about creating a local
SAGE server for our school, and he thought he could probably do it,
but he's just been swamped.

But I noticed that sagenb has really become pretty smooth over the
last year or so, so I went ahead and had the kids create accounts.

On Sep 23, 9:08 am, Marshall Hampton hampto...@gmail.com wrote:
 Although I am not a network guru, it sounds like your tech guy is
 right and the proxy server is causing the trouble.  I don't know how
 you would fix that, but maybe someone else on this list does.

 There is an upcoming rewrite of the notebook-server implementation
 that might help with this but William Stein would have to confirm
 that.

 Are you using sagenb.org?

 -M. Hampton

 On Sep 23, 7:06 am, michel mpaul...@gmail.com wrote:

  Hi,

  I'm a high school math teacher experimenting with getting students to
  use SAGE.  I've been successful in getting my students to open their
  own notebook accounts.  I took my classes to the computer lab one day,
  and during the session the kids started experiencing other names on
  their accounts.  The names were all from our class.  No one had access
  to anyone else's files, but suddenly the account name would shift to
  someone else's.  And then yesterday in my regular classroom while I
  was demoing SAGE, suddenly the name on my account changed to that of
  one of my students.  She was not in class that period, and I have to
  check to see if maybe she was using SAGE somewhere else on campus at
  that time.  It was all very mysterious, and so I checked it out with
  our tech guy.  I was wondering if the issue was our network.  His
  response was, I wonder if technically we’re seen as just a singular
  IP address (which is our proxy).  Because, everyone is using the same
  proxy (thus same IP) to access this website.  So even though everyone
  is making an individual login, it’s all going through the same IP
  address.  Any ideas as to what's happening?

  Thanks very much,

  Michel Paul
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Logarithmic integral at complex values?

2008-11-02 Thread Michel

Ok it seems that li(x)=Ei(log(x)) and this works for complex values.
Furthermore Li(x)=li(x)-li(2).

It seems that Li(x) has been artificially curtailed to take
only real arguments.

Michel


On Nov 2, 3:00 pm, Michel [EMAIL PROTECTED] wrote:
 Hi,

 Is there a method in sage to compute Li(z) for z complex? I am trying
 to illustrate
 Riemann prime number formula but now it seems Li(z) accept only real
 arguments.

 Michel
--~--~-~--~~~---~--~~
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 group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Question about Plot

2008-11-01 Thread Michel

I would like to make a simple 2D plot of a function. However I cannot
figure out from the manual how to specify the frequency of the tick
marks. Currently they seem to be multiples of 2.5 and I would like
them to be multiples of 1.0.

Any help?

Regards,
Michel

--~--~-~--~~~---~--~~
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 group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Does sage support transcendental base rings?

2008-07-19 Thread Michel

Hi,

In need to do some Grobner basis computations in rings of the form
QQ(a,b,...)[x,y,z,].

It is possible to define such rings in Singular. However I am afraid
that if I define them in
sage in the usual iterative way

R=QQ['a','b','c']
K=FractionField(R)
S=K['x','y','z']

I will not get the Singular optimized version. Is this true? Is there
syntax so that one uses the Singular version?

Regards,
Michel
--~--~-~--~~~---~--~~
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 group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Mysterious problem.

2008-03-27 Thread Michel

which sage gives /usr/bin/sage which is the usual script which sets
SAGE_ROOT (/usr/local/share/sage-2.10.4 in this case) and
calls /usr/local/share/sage-2.10.4/local/bin/sage-sage.

Things like
 env SAGE_ROOT=/usr/local/share/sage-2.10.4 /usr/local/share/
sage-2.10.4/local/bin/sage-sage -singular
give the error message reported earlier

Singular-3-0-4: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found
(required by l ibstdc++.so.6)

unless executed from /usr/local/share/sage-2.10.4. Afterwards the
command continues to work in in the same shell, even in another
directory.

How does sage finds it .so files? Because I think that is the problem.

Michel




On Mar 27, 6:11 am, William Stein [EMAIL PROTECTED] wrote:
 On Wed, 26 Mar 2008 15:36:14 -0700, Michel [EMAIL PROTECTED] wrote:

  I have a fresh sage-2.10.4 install (compiled from source). I have done
  make install
  and install_scripts.

  If I do sage -singular I get

 Is the output of

 which sage

 the sage script that is in you SAGE_ROOT directory mentioned below?



  Singular-3-0-4: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found
  (required by libstdc++.so.6)

  If I go once to the SAGE_ROOT directory and do the same command there
  then
  suddenly it works.
  
   SINGULAR /
  Development
   A Computer Algebra System for Polynomial Computations   /   version
  3-0-4
 0
   by: G.-M. Greuel, G. Pfister, H. Schoenemann\   Nov 2007
  FB Mathematik der Universitaet, D-67653 Kaiserslautern\

  
  Moreover the command now also works in another directory, IN THE SAME
  SHELL.
  In a different shell I get the error message again.

  I think sometimes sage picks up the system wide libgcc_s.so.1 instead
  of its own copy.

  Any help in resolving this would be appreciated. My system is FC4.

  Michelstein.org
--~--~-~--~~~---~--~~
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 group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Quadraitic forms in Sage.

2008-01-13 Thread Michel

Hi is there a way to work with quadratic forms in Sage? The manual
does not mention them.

Regards,
Miche
--~--~-~--~~~---~--~~
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 group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: echelon form

2007-06-02 Thread Michel

Ok I understand!!

I just did the exercise in the pari console.

? A=[0,0,0; 0,0,0;  0,0,0]
%3 =
[0 0 0]

[0 0 0]

[0 0 0]

? mathnf(A)
%4 = [;]

So pari is a bit brain damaged and represents the empty matrix by
[;]!!!
This should be special cased in the parsing routines.

William: I assume it is now trivial for you to correct this. If not
then
I will make a patch.

Michel

On Jun 2, 9:54 am, Michel [EMAIL PROTECTED] wrote:
 It's quite confusing where this bug lies. I would assume that

 sage.libs.pari.gen.gen.mathnf

 returns the wrong thing but since I can't find the definition
 of new_gen I can't debug it further.

 Michel

 On Jun 1, 10:55 pm, Michel [EMAIL PROTECTED] wrote:

  No patch but I can tell you were there is something obviously wrong.

  The matrix H on line 1056 in matrix_integer_dense.pyx should
  be the empty matrix (perhaps []?) but it is something like ['',''].
  The computation
  for adding the missing zero rows goes wrong after that.

  Michel

  On Jun 1, 9:34 pm, William Stein [EMAIL PROTECTED] wrote:

   On 6/1/07, Thea Gegenberg [EMAIL PROTECTED] wrote:

The method echelon_form gives me an error when I try to take the
echelon form of a zero matrix. It says TypeError: entries has the
wrong length

   Here's an example to illustrate the bug.  I hope somebody will
   fix it and send me a patch :-).

   sage: m = matrix(ZZ,3,3,[0]*9)
   sage: m.ech
   m.echelon_form  m.echelonize
   sage: m.echelon()
   ---
   type 'exceptions.AttributeError'Traceback (most recent call 
   last)

   /home/was/talks/2007-06-01-grants/ipython console in module()

   type 'exceptions.AttributeError':
   'sage.matrix.matrix_integer_dense.Matrix_integer_de' object has no
   attribute 'echelon'
   sage: m.echelon_form()
   ---
   type 'exceptions.TypeError'


--~--~-~--~~~---~--~~
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 group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: echelon form

2007-06-02 Thread Michel

Here is a patch that fixes this. Perhaps there is a better way to do
it.

http://emis.uhasselt.be/sage_patches/zero_matrix_echelon_form_bug.patch

Michel


On Jun 2, 10:01 am, Michel [EMAIL PROTECTED] wrote:
 Ok I understand!!

 I just did the exercise in the pari console.

 ? A=[0,0,0; 0,0,0;  0,0,0]
 %3 =
 [0 0 0]

 [0 0 0]

 [0 0 0]

 ? mathnf(A)
 %4 = [;]

 So pari is a bit brain damaged and represents the empty matrix by
 [;]!!!
 This should be special cased in the parsing routines.

 William: I assume it is now trivial for you to correct this. If not
 then
 I will make a patch.

 Michel

 On Jun 2, 9:54 am, Michel [EMAIL PROTECTED] wrote:

  It's quite confusing where this bug lies. I would assume that

  sage.libs.pari.gen.gen.mathnf

  returns the wrong thing but since I can't find the definition
  of new_gen I can't debug it further.

  Michel

  On Jun 1, 10:55 pm, Michel [EMAIL PROTECTED] wrote:

   No patch but I can tell you were there is something obviously wrong.

   The matrix H on line 1056 in matrix_integer_dense.pyx should
   be the empty matrix (perhaps []?) but it is something like ['',''].
   The computation
   for adding the missing zero rows goes wrong after that.

   Michel

   On Jun 1, 9:34 pm, William Stein [EMAIL PROTECTED] wrote:

On 6/1/07, Thea Gegenberg [EMAIL PROTECTED] wrote:

 The method echelon_form gives me an error when I try to take the
 echelon form of a zero matrix. It says TypeError: entries has the
 wrong length

Here's an example to illustrate the bug.  I hope somebody will
fix it and send me a patch :-).

sage: m = matrix(ZZ,3,3,[0]*9)
sage: m.ech
m.echelon_form  m.echelonize
sage: m.echelon()
---
type 'exceptions.AttributeError'Traceback (most recent call 
last)

/home/was/talks/2007-06-01-grants/ipython console in module()

type 'exceptions.AttributeError':
'sage.matrix.matrix_integer_dense.Matrix_integer_de' object has no
attribute 'echelon'
sage: m.echelon_form()
---
type 'exceptions.TypeError'


--~--~-~--~~~---~--~~
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 group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: echelon form

2007-06-01 Thread Michel

No patch but I can tell you were there is something obviously wrong.

The matrix H on line 1056 in matrix_integer_dense.pyx should
be the empty matrix (perhaps []?) but it is something like ['',''].
The computation
for adding the missing zero rows goes wrong after that.

Michel

On Jun 1, 9:34 pm, William Stein [EMAIL PROTECTED] wrote:
 On 6/1/07, Thea Gegenberg [EMAIL PROTECTED] wrote:

  The method echelon_form gives me an error when I try to take the
  echelon form of a zero matrix. It says TypeError: entries has the
  wrong length

 Here's an example to illustrate the bug.  I hope somebody will
 fix it and send me a patch :-).

 sage: m = matrix(ZZ,3,3,[0]*9)
 sage: m.ech
 m.echelon_form  m.echelonize
 sage: m.echelon()
 ---
 type 'exceptions.AttributeError'Traceback (most recent call last)

 /home/was/talks/2007-06-01-grants/ipython console in module()

 type 'exceptions.AttributeError':
 'sage.matrix.matrix_integer_dense.Matrix_integer_de' object has no
 attribute 'echelon'
 sage: m.echelon_form()
 ---
 type 'exceptions.TypeError'


--~--~-~--~~~---~--~~
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 group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] bizarre error in plotting

2007-02-11 Thread Michel

I wanted to do my first plotting experiment in sage-2.0. (on FC6)

bc1 = bar_chart([1,2,3,4]) # from the manual
bc1.show()

 (lots of debug output)
type 'exceptions.ImportError': No module named _md5

What's up? Am I doing something wrong?

Regards,
Michel


--~--~-~--~~~---~--~~
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 group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: bizarre error in plotting

2007-02-11 Thread Michel

I think I now understand the problem. A while ago
I pulled over a compiled version of sage-2.0 from a
FC4 to a FC6 machine. Everything seemed fine, but
apparently it wasn't.

Anyway I have downloaded and compiled 2.1.0.1 now.

Michel



On Feb 11, 1:49 pm, David Joyner [EMAIL PROTECTED] wrote:
 Works for me in SAGE 2.1 (suse 10.0 amd64).

 On 2/11/07, Michel [EMAIL PROTECTED] wrote:



  I wanted to do my first plotting experiment in sage-2.0. (on FC6)

  bc1 = bar_chart([1,2,3,4]) # from the manual
  bc1.show()

   (lots of debug output)
  type 'exceptions.ImportError': No module named _md5

  What's up? Am I doing something wrong?

  Regards,
  Michel


--~--~-~--~~~---~--~~
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 group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Real points on elliptic curves

2007-02-08 Thread Michel


 Thanks.  Incidentally, at some point in the not-to-distant future, sqrt
 will be replaced by a symbolic version, so sqrt(2) will be symbolic. Then
 sqrt(2) + 1 - 1 == sqrt(2) will be true (and the equality will be tested
 using either Maxima or Giac).

 William

Yes at this moment there is an unpleasant inconsistency between some
functions and others.

E.g. log(2) or sqrt(2) evaluate immediately, whereas sin(2) doesn't.

Michel





--~--~-~--~~~---~--~~
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 group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---