[sage-support] Print polynomials with ascending order of degree

2012-02-02 Thread Oliver Block
Hello, when I print a univariate polynomial using print(P) then it is printed with descending order of the degrees, for example as X^2 + 2*X + 1 Is there a way to print it using ascending order of the degrees, i.e as follows? 1 + 2*X + X^2 And is the same possible using the latex output fun

Re: [sage-support] Re: Derivations on polynomial rings

2012-02-02 Thread Oliver Block
Hello Simon, On Mon, Jan 30, 2012 at 05:02:24AM -0800, Simon King wrote: > Hi Oliver, > > On 30 Jan., 11:24, Oliver Block wrote: > > I do not understand why "Univariate Polynomial Ring in x over Rational > > Field" is not in "Category of vector spaces over R

Re: [sage-support] Re: Derivations on polynomial rings

2012-01-30 Thread Oliver Block
Hi Simon, On Sun, Jan 29, 2012 at 10:37:22PM -0800, Simon King wrote: > That's to say: You don't simply want a function, but you want a > morphism of modules over the base ring, isn't it? Yes, this is what I wanted to say. And it should fulfill the Leibniz rule on elements of the ring (the module

[sage-support] Derivations on polynomial rings

2012-01-29 Thread Oliver Block
Hello, I would like to define a function d from polynomial ring to itself (in the easiest case) that is linear over the base ring and fulfills the Leibniz rule, i.e. for all p,q in the Polynomial ring I want that d(p*q) = d(p)*q + p*d(q). I would like to do this by specifying the image of the gene

[sage-support] Re: function evaluation

2009-02-23 Thread Oliver Block
On Mon, Feb 23, 2009 at 05:40:39AM -0600, Jason Grout wrote: [...] > Yes, that is correct. When someone calls plot(h(f), 0, 20), then h is > evaluated at f first, so if f was 10, then plot(h(f), 0, 20) is exactly > the same as plot(0, 0, 20). In order to call h with the numeric values > betw

[sage-support] Re: function evaluation

2009-02-23 Thread Oliver Block
Dear Stefanie, On Mon, Feb 23, 2009 at 11:55:27AM +0100, Stefanie Schmidt wrote: [...] > G=plot(h(f), 0, 20) > G.show() Although I am not a sage expert, I would say, you want the following: G=plot(h, 0, 20) G.show() Do not give an argument to h. Best regards, Oliver --~--~-~--~~--