[sage-support] A commandline history feature

2009-05-28 Thread Kwankyu
Hi, Using Sage, I am missing a feature of Magma command line interface. In Magma, if I enter a line found in history using up arrow key, and then press down arrow key, then the next line in history is fetched. This feature allows me to fetch as many successive lines in history as like. Does Sage(

[sage-support] Re: A commandline history feature

2009-05-28 Thread William Stein
On Thu, May 28, 2009 at 12:29 AM, Kwankyu wrote: > > Hi, > > Using Sage, I am missing a feature of Magma command line interface. In > Magma, if I enter a line found in history using up arrow key, and then > press down arrow key, then the next line in history is fetched. This > feature allows me t

[sage-support] Re: A commandline history feature

2009-05-28 Thread Kwankyu
On May 28, 4:35 pm, William Stein wrote: > On Thu, May 28, 2009 at 12:29 AM, Kwankyu wrote: > > > Hi, > > > Using Sage, I am missing a feature of Magma command line interface. In > > Magma, if I enter a line found in history using up arrow key, and then > > press down arrow key, then the next

[sage-support] Resources for server installation

2009-05-28 Thread leso...@googlemail.com
At my institution we are thinking of using Sage in our teaching. We would like to install it on a server, so that the students may use it, either from home or from the computer labs at the university during programmed activities. My question is the following: what are the minimum resources (memory

[sage-support] Re: A commandline history feature

2009-05-28 Thread William Stein
On Thu, May 28, 2009 at 1:08 AM, Kwankyu wrote: > > > > On May 28, 4:35 pm, William Stein wrote: >> On Thu, May 28, 2009 at 12:29 AM, Kwankyu wrote: >> >> > Hi, >> >> > Using Sage, I am missing a feature of Magma command line interface. In >> > Magma, if I enter a line found in history using up

[sage-support] Re: Resources for server installation

2009-05-28 Thread William Stein
On Thu, May 28, 2009 at 1:12 AM, leso...@googlemail.com wrote: > > At my institution we are thinking of using Sage in our teaching. We > would like to install it on a server, so that the students may use it, > either from home or from the computer labs at the university during > programmed activi

[sage-support] Possible bug Inheritance from SymbolicArithmetic (method __repr__)

2009-05-28 Thread Nicolas
Hi there, I have a problem when doing some inheritance from class SymbolicArithmetic in sage from version 3.4 and up. There is no problem with 3.3. Here is a sample code : in file classtest.sage put : class test(SymbolicArithmetic): def __init__(self,eq): SymbolicAri

[sage-support] NameError: global name 't' is not defined

2009-05-28 Thread flori
hay I try to write a py script to calculate something for me. The script is called friction.py and containes #!/usr/bin/env sage -python import sys from sage.all import * import functions from functions import * print "Ok... dann legen wir mal los!\n" print "step1: definition of the density pro

[sage-support] Re: NameError: global name 't' is not defined

2009-05-28 Thread simon . king
Hi! On May 28, 11:35 am, flori wrote: ... > NameError: global name 'x' is not defined > > if I run a similar integral directly in sage it works very well, so I > probably forgot anything to include?? In Sage, 'x' is pre-defined (which the weighted majority of Sage developers considers a feature

[sage-support] Using Sage to Perform Blow-ups?

2009-05-28 Thread Daniel Loughran
I am trying to construct explicit equations for del Pezzo surfaces, i.e. blow-ups of the projective plane at certain points. I have had a look already at the sage manual and couldnt find anything, however I thought I best ask before giving up totally. Can sage: 1. Construct blow ups of the projec

[sage-support] Re: NameError: global name 't' is not defined

2009-05-28 Thread flori
yes thats it... thank you very much On May 28, 6:03 pm, simon.k...@uni-jena.de wrote: > Hi! > > On May 28, 11:35 am, flori wrote: > ... > > > NameError: global name 'x' is not defined > > > if I run a similar integral directly in sage it works very well, so I > > probably forgot anything to inc

[sage-support] `rat' replaced 1000000.0 by 1000000/1 = 1000000.0

2009-05-28 Thread flori
hay sorry for posting all my problems here I still have no good tutorial and the error messages are not very helpful... The whole error message I get is below. The program I am using is not very complicated. It is a python script which calls different functions ---

[sage-support] Re: Help! Why the polynomial is not generated for "Multivariate Polynomial Ring in y0, y1, y2, y3, y4, y5, y6, y7, x0, x1, x2, x3, x4, x5, x6, x7 over Finite Field of size 2"

2009-05-28 Thread Martin Albrecht
On Thursday 28 May 2009, Saj wrote: > Hi martin, > > Thanks for your comment! > > Can u help me how to do that, with/without sage 4.0. I never worked > with hg diff. > > Thanks & Regards, > Sajan.S Hi there, you might want to check out the hg tutorial: http://www.selenic.com/mercurial/wiki/

[sage-support] Re: Saving sage output?

2009-05-28 Thread javier
For saving individual objects: http://www.sagemath.org/doc/tutorial/interactive_shell.html#saving-and-loading-individual-objects for saving the whole session: http://www.sagemath.org/doc/tutorial/interactive_shell.html#section-save Cheers Javier On May 28, 3:01 am, Baruch wrote: > Please not

[sage-support] Re: simplify_radical (and thus simplify_full) forgets an absolute value

2009-05-28 Thread Burcin Erocal
On Tue, 26 May 2009 14:45:54 -0700 (PDT) Alden wrote: > > When I run: > var('t') > sqrt(t^2*(1+t^2)).simplify_radical() > > I get the correct: > sqrt(t^2 + 1)*abs(t) > > But if I run: > sqrt(t^2 + t^4).simplify_radical() > > I get: > t*sqrt(t^2 + 1) > > Am I doing something wrong? thanks!

[sage-support] Re: notebook, folding

2009-05-28 Thread gerhard
My knowledge of jquery is currently rudimentary (glanced at a book about a year ago), but I'll try and see what I can come up with for some sort of demo. Might take me a week or two..., depending on available leisure time. -gerhard --~--~-~--~~~---~--~~ To post to

[sage-support] Modifying degree of monomial from multivariate polynomial

2009-05-28 Thread Ryan Hinton
I have a loop where I need to generate all of the degree sequences less than the current degree. Here is what I want to do. < = SR[] xgens = R.gens() # create a polynomial of interest # (this will typically have more terms) mu = x12 * x2 # loop over diff_mu = {} curr_mons = mu.monomials() whil

[sage-support] substitution of lambda variable

2009-05-28 Thread Paul Sargent
Hi, I have some equations that use the Greek letter lambda in them, but I'm having problems because lambda is a keyword in python, and at some points the two collide. For example: sage: l = var("lambda") sage: t = var("theta") sage: e1 = t == l^2 sage: e2 = e1.solve(l) sage: e1 theta == lambda^2

[sage-support] Re: Modifying degree of monomial from multivariate polynomial

2009-05-28 Thread Martin Albrecht
> # loop over > diff_mu = {} > curr_mons = mu.monomials() > while len(curr_mons) > 0: > mon = curr_mons.pop() > deg = mon.degrees() > diff_mu[deg] = True > for x in xgens: > if mon.degree(x) > 0: > curr_mons.append(mon / x) > # this gives a FractionF

[sage-support] Tab completion seg faults

2009-05-28 Thread ksk...@gmail.com
I've built several recent versions of Sage on the same box (a 64-bit Opteron running Fedora 10), and it seems pretty consistently that attempting to use a tab completion causes a segmentation fault. For instance: -- | Sage Versio

[sage-support] Re: substitution of lambda variable

2009-05-28 Thread Mike Hansen
Hello, On Thu, May 28, 2009 at 8:38 AM, Paul Sargent wrote: > # Subs for lambda (have to use "lambda", but that's a keyword) > > sage: e1.subs(lambda = 3) > >   File "", line 1 >     e1.subs(lambda = Integer(3)) >                    ^

[sage-support] Re: notebook, folding

2009-05-28 Thread Jason Grout
gerhard wrote: > My knowledge of jquery is currently rudimentary (glanced at a book > about a year ago), > but I'll try and see what I can come up with for some sort of demo. > Might take me a week or two..., depending on available leisure time. I understand. It's the same for most of us. I'm e

[sage-support] Re: substitution of lambda variable

2009-05-28 Thread Jason Grout
Mike Hansen wrote: > Hello, > > On Thu, May 28, 2009 at 8:38 AM, Paul Sargent wrote: >> # Subs for lambda (have to use "lambda", but that's a keyword) >> >> sage: e1.subs(lambda = 3) >> >> File "", line 1 >> e1.subs(lambda = Inte

[sage-support] Re: substitution of lambda variable

2009-05-28 Thread Paul Sargent
On 28 May 2009, at 16:49, Mike Hansen wrote: > sage: sage: e1.subs({l:3}) > theta == 9 Yes I'd found the dictionary form in the docstring, but didn't know that it took the python variable rather than the symbol name (if you see what I mean), and so was still having the same problem. The doc

[sage-support] Re: substitution of lambda variable

2009-05-28 Thread Mike Hansen
On Thu, May 28, 2009 at 9:06 AM, Paul Sargent wrote: > Yes I'd found the dictionary form in the docstring, but didn't know > that it took the python variable rather than the symbol name (if you > see what I mean), and so was still having the same problem. > The docstring suffers from the fact tha

[sage-support] Re: Modifying degree of monomial from multivariate polynomial

2009-05-28 Thread Ryan Hinton
Martin, Thanks for the reply. Did I mention I'm using 3.4.2? When I try using mon // x instead of mon / x, I get an exception: --- AttributeErrorTraceback (most recent call last) /home/ryan/.sa

[sage-support] Re: Modifying degree of monomial from multivariate polynomial

2009-05-28 Thread javier
On May 28, 4:19 pm, Ryan Hinton wrote: > > > I also tried working directly > with the degree tuples instead of the monomials, but tuples aren't > mutable, subtraction isn't defined for them, and (x1**(-1)) gives a > FractionFieldElement again. > > Any suggestions? How about copying the degree t

[sage-support] Re: Tab completion seg faults

2009-05-28 Thread William Stein
On Thu, May 28, 2009 at 8:47 AM, ksk...@gmail.com wrote: > > I've built several recent versions of Sage on the same box (a 64-bit > Opteron running Fedora 10), and it seems pretty consistently that > attempting to use a tab completion causes a segmentation fault. For > instance: I can replicate

[sage-support] Bonsoir

2009-05-28 Thread faicel
Bonsoir M. je suis entrain de programmer sur sage est j'ai blocqué en ce point, je veux evaluer un polynomes en une liste d'une liste de racine, mais le problème c'est qu'il evalue ce polynomes que pour la première sous liste, et voiçi l'exemble: rr=[2,3,4] n=3 rr_ss=[()] pp=[] for si in Alte

[sage-support] evaluer un polynome en une liste d'une liste de racines

2009-05-28 Thread faicel
Bonsoir M. je suis entrain de programmer sur sage est j'ai blocqué en ce point, je veux evaluer un polynomes en une liste d'une liste de racine, mais le problème c'est qu'il evalue ce polynomes que pour la première sous liste, et voiçi l'exemble: rr=[2,3,4] n=3 rr_ss=[()] pp=[] for si in Alte

[sage-support] Re: Tab completion seg faults

2009-05-28 Thread Mike Hansen
On Thu, May 28, 2009 at 11:28 AM, William Stein wrote: > > On Thu, May 28, 2009 at 8:47 AM, ksk...@gmail.com wrote: >> >> I've built several recent versions of Sage on the same box (a 64-bit >> Opteron running Fedora 10), and it seems pretty consistently that >> attempting to use a tab completio

[sage-support] Re: Modifying degree of monomial from multivariate polynomial

2009-05-28 Thread Martin Albrecht
On Thursday 28 May 2009, Ryan Hinton wrote: > Martin, > > Thanks for the reply. Did I mention I'm using 3.4.2? When I try > using mon // x instead of mon / x, I get an exception: > > --- > AttributeError

[sage-support] Re: Tab completion seg faults

2009-05-28 Thread William Stein
On Thu, May 28, 2009 at 12:47 PM, Mike Hansen wrote: > > On Thu, May 28, 2009 at 11:28 AM, William Stein wrote: >> >> On Thu, May 28, 2009 at 8:47 AM, ksk...@gmail.com wrote: >>> >>> I've built several recent versions of Sage on the same box (a 64-bit >>> Opteron running Fedora 10), and it seem

[sage-support] Re: Tab completion seg faults

2009-05-28 Thread Jason Grout
William Stein wrote: > On Thu, May 28, 2009 at 12:47 PM, Mike Hansen wrote: >> On Thu, May 28, 2009 at 11:28 AM, William Stein wrote: >>> On Thu, May 28, 2009 at 8:47 AM, ksk...@gmail.com wrote: I've built several recent versions of Sage on the same box (a 64-bit Opteron running Fedor

[sage-support] Re: Tab completion seg faults

2009-05-28 Thread William Stein
On Thu, May 28, 2009 at 1:01 PM, Jason Grout wrote: > > William Stein wrote: >> On Thu, May 28, 2009 at 12:47 PM, Mike Hansen wrote: >>> On Thu, May 28, 2009 at 11:28 AM, William Stein wrote: On Thu, May 28, 2009 at 8:47 AM, ksk...@gmail.com wrote: > I've built several recent versions

[sage-support] Re: Help! Why the polynomial is not generated for "Multivariate Polynomial Ring in y0, y1, y2, y3, y4, y5, y6, y7, x0, x1, x2, x3, x4, x5, x6, x7 over Finite Field of size 2"

2009-05-28 Thread LBerlioz
maybe this quick tutorial can be useful: http://www.sagemath.org/doc/developer/producing_patches.html --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@g

[sage-support] Re: Tab completion seg faults

2009-05-28 Thread Mike Hansen
On Thu, May 28, 2009 at 1:03 PM, William Stein wrote: > > Yes, it's an option, if it works and somebody can do the work (!= me). > > William There's a new spkg at http://trac.sagemath.org/sage_trac/ticket/5218 that needs to be reviewed. It's the same as the old one except that it has a fix for

[sage-support] Re: tachyon in mac os x, problem

2009-05-28 Thread Sandro
update: solved by deleting ~/.sage and restarting --~--~-~--~~~---~--~~ 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

[sage-support] Re: Tab completion seg faults

2009-05-28 Thread William Stein
On Thu, May 28, 2009 at 1:58 PM, Mike Hansen wrote: > > On Thu, May 28, 2009 at 1:03 PM, William Stein wrote: >> >> Yes, it's an option, if it works and somebody can do the work (!= me). >> >> William > > There's a new spkg at http://trac.sagemath.org/sage_trac/ticket/5218 > that needs to be rev

[sage-support] Re: Possible bug Inheritance from SymbolicArithmetic (method __repr__)

2009-05-28 Thread Robert Bradshaw
On May 28, 2009, at 1:36 AM, Nicolas wrote: > Hi there, > > I have a problem when doing some inheritance from class > SymbolicArithmetic in sage from version 3.4 and up. There is no > problem with 3.3. Here is a sample code : > > in file classtest.sage put : > > class test(SymbolicArithmetic

[sage-support] downloading multiple worksheets

2009-05-28 Thread Jason Grout
I thought http://trac.sagemath.org/sage_trac/ticket/2740 made it possible to download lots of worksheets at the same time. It says it was merged into 3.4.2. However, I can't find the "Download all" link from the patch in sagenb.org or alpha.sagenb.org. However, I do find the "Download All"

[sage-support] Re: downloading multiple worksheets

2009-05-28 Thread Robert Bradshaw
On May 28, 2009, at 4:07 PM, Jason Grout wrote: > I thought http://trac.sagemath.org/sage_trac/ticket/2740 made it > possible to download lots of worksheets at the same time. It says it > was merged into 3.4.2. However, I can't find the "Download all" link > from the patch in sagenb.org or alph

[sage-support] Re: Install problems

2009-05-28 Thread mathgeek
> Did you install Sage through apt or Synaptic? If so, you should know > that the version of Sage available in Ubuntu does not pass doctests, so > it's somewhat pointless to even run the tests. I'm not exactly sure what that is. I opened the terminal, typed sage and it asked me if I wanted to in

[sage-support] Re: `rat' replaced 1000000.0 by 1000000/1 = 1000000.0

2009-05-28 Thread flori
I found that the error occurs only if I take r = float. In the case if r = int I can get an expression but I can't convert in using .n() The term I get without .n() is step4: definition of the velocity dispersion 10 inf /

[sage-support] Re: `rat' replaced 1000000.0 by 1000000/1 = 1000000.0

2009-05-28 Thread Robert Dodier
flori wrote: > `rat' replaced 100.0 by 100/1 = 100.0 In order to carry out manipulations, Maxima changes all floats to rationals. You can suppress the messages, I forget which flag it is, but probably it's better to avoid floats until you really need them. > Maxima encountered a Lis

[sage-support] Re: Saving sage output?

2009-05-28 Thread Baruch
Thank you, Javier. I appreciate your help. On May 28, 8:05 am, javier wrote: > For saving individual objects: > > http://www.sagemath.org/doc/tutorial/interactive_shell.html#saving-an... > > for saving the whole session: > > http://www.sagemath.org/doc/tutorial/interactive_shell.html#section-sa