Re: [sage-support] needs *FAST* polynomial multiplication

2010-07-14 Thread Mike Hansen
On Wed, Jul 14, 2010 at 11:51 PM, Nathann Cohen wrote: > As such a polynomial will grow very large, very quickly, I would like > to know which would be the best way to compute it. I already know > things like the degree of the final polynomial, if it can help. Have you tried using the default pol

[sage-support] needs *FAST* polynomial multiplication

2010-07-14 Thread Nathann Cohen
Hello everybody !!! I would like to write some graph-theoretical function which involves large polynomials. Actually, what I have is the following : to each vertex of my graph is associated a variable, and I want to compute the product over all the edges u,v of (X_u - X_v). I am then just interest

[sage-support] Re: Sage-mode in Emacs

2010-07-14 Thread vasu
Hi MInh Awesome! Got it to work. Thanks a bunch. Best, Vasu On Jul 14, 8:13 pm, Minh Nguyen wrote: > Hi Vasu, > > On Thu, Jul 15, 2010 at 4:58 AM, vasu wrote: > > I am relatively new to this, so does anybody have a clue how to get > > the thing working! > > Don't copy the code from the Sage mod

Re: [sage-support] Sage-mode in Emacs

2010-07-14 Thread Minh Nguyen
Hi Vasu, On Thu, Jul 15, 2010 at 4:58 AM, vasu wrote: > I am relatively new to this, so does anybody have a clue how to get > the thing working! Don't copy the code from the Sage mode page. Use the code that is printed to your terminal after you have successfully installed sage-mode. And make su

Re: [sage-support] types for functions

2010-07-14 Thread Mike Hansen
On Wed, Jul 14, 2010 at 3:04 PM, Johannes wrote: > scalar(v,w) = v * m * w This is not what you want to do -- http://sagemath.org/doc/tutorial/tour_functions.html explains what is going on here. > otherwise, if i do it this way, directly on the console it works: > v1 = vector([1,1,1]) > v2 = vec

[sage-support] types for functions

2010-07-14 Thread Johannes
Hi list, i have a problem defining a function realizing the default scalar: i have m = matrix([[1,0,0,],[0,1,0],[0,0,1]]) and want to define scalar(v,w) = v * m * w but i always get this: (v, w) |--> [v*w 0 0] [ 0 v*w 0] [ 0 0 v*w] otherwise, if i do it this way, directly on the console

[sage-support] Sage-mode in Emacs

2010-07-14 Thread vasu
Hi all I am trying to get sage-mode working for Emacs 23.1 on an ubuntu 10.04. I downloaded the spkg from http://wiki.sagemath.org/sage-mode and made the changes to my init.el file by adding that piece of code mentioned in the website. Now this is the error I keep getting when I start emacs. Warni

[sage-support] Re: Superimpose various region_plot's

2010-07-14 Thread David Sanders
On Jul 13, 8:35 pm, David Sanders wrote: > On Jul 13, 4:47 pm, Jason Grout wrote: > > > > > On 7/13/10 4:46 AM, David Sanders wrote: > > > > Hi, > > > > I need to superimpose several region_plot's. These have regions > > > colored in different colors which may or may not overlap. However, if >

[sage-support] Re: save then load: "OError: [Errno 2] No such file or directory"

2010-07-14 Thread Daniel Friedan
Sorry about the beginner's question. The FAQ clarified matters. The tutorial on save() and load() must be obsolete. The FAQ says to save(object, DATA+filename), then load(DATA +filename). This works. It seems one must make a note of the value of DATA when saving, in order to load the object in

[sage-support] save then load: "OError: [Errno 2] No such file or directory"

2010-07-14 Thread 8fjm39j
A beginner's question: how to save and load objects? I tried to follow the examples in the tutorial, but without success. Am I missing something obvious? (using both Sage 4.4.4 OS X 10.6 and Sage 4.3.4 Linux). sage: save(solution, '2-2-solution') 2-2-solution.sobj sage: load('2-2-solutio

Re: [sage-support] Re: Turning axes off

2010-07-14 Thread Alec Battles
Must be better than nothing. I'll try it. Thank you. Alec On Thu, Jul 15, 2010 at 12:19 AM, kcrisman wrote: > Dear Alec, > > The following will (partly) answer your question if you use 'axes' > instead of 'frame'.  I'm not sure (vis-a-vis that thread) if it will > completely do it for you, thoug

[sage-support] Re: Turning axes off

2010-07-14 Thread kcrisman
Dear Alec, The following will (partly) answer your question if you use 'axes' instead of 'frame'. I'm not sure (vis-a-vis that thread) if it will completely do it for you, though. - kcrisman http://groups.google.com/group/sage-support/browse_thread/thread/d7e7b531a67c57fd On Jul 13, 12:01 am,

Re: [sage-support] Re: adding more points to an existing polyhedron

2010-07-14 Thread Alec Battles
Sounds like an interesting project. Is it for school or for fun? I'm using Sage to make art and sorta failing. If I knew more programming I'd give it a lot more time, but sadly my only talents are in the GIMP/Inkscape department. Alec -- To post to this group, send email to sage-support@googleg