[sage-support] Periodic inabilitity of sin()

2012-04-22 Thread Duc Trung Ha
Hola, Am I missing something or is this behavior rather peculiar: sage: bool(sin(x) == sin(x+2*pi)) True ...however: plot(sin(x) - sin(x+2*pi)) gives out the result: http://aleph.sagemath.org/?c=plot%28sin%28%282%2Api%29+%2B+x%29+-+sin%28x%29%2C-100%2C100%29

[sage-support] Re: Periodic inabilitity of sin()

2012-04-22 Thread Johan Grönqvist
2012-04-22 14:39, Duc Trung Ha skrev: Am I missing something or is this behavior rather peculiar: sage: bool(sin(x) == sin(x+2*pi)) True ...however: plot(sin(x) - sin(x+2*pi)) gives out the result: [plot showing inaccuracies of floats] I typed this instead, and got a nice line at 0:

[sage-support] Re: Periodic inabilitity of sin()

2012-04-22 Thread Duc Trung Ha
Thanks a lot for an explanatory reply :-) Unfortunately I still have some comments... I typed this instead, and got a nice line at 0: plot(simplify(sin((2*pi) + x) - sin(x)),-100,100) This is not working for a little bit more complicated arguments, for instance, the second sin(x/pi)

Re: [sage-support] How to install python packages for my Sage environment using subprocess when input is required

2012-04-22 Thread William Stein
On Sun, Apr 22, 2012 at 11:26 AM, DigDug_the_2nd dugthemath...@gmail.com wrote: I installed Sage on an Ubuntu 10 VM using a prebuilt binary, and it installed it in its own environment under a folder called sage-4.8 I know this is a nice feature in general, but the problem is that my VM already

[sage-support] polynomial division

2012-04-22 Thread Michael Beeson
Sage version 4.6.1 (I know it's old, new one is downloading now, but I don't think this is a version problem.) Given: polynomial f in x with some letters for the coefficients, and polynomial psi of lower degree in x with constant coefficients. Wanted: remainder of f on division by psi as

Re: [sage-support] polynomial division

2012-04-22 Thread Justin C. Walker
On Apr 22, 2012, at 13:23 , Michael Beeson wrote: Sage version 4.6.1 (I know it's old, new one is downloading now, but I don't think this is a version problem.) Given: polynomial f in x with some letters for the coefficients, and polynomial psi of lower degree in x with constant

[sage-support] Re: polynomial division

2012-04-22 Thread Volker Braun
Because you divided by x in your computation, the polynomial f was coerced into the fraction field. In the fraction field, quotient is always possible without reminder: sage: f.parent() Fraction Field of Multivariate Polynomial Ring in x, N, p, r, m, l over Rational Field You want to convert