Re: [sage-support] Decimal Answers

2015-05-11 Thread Anton Sherwood
On 2015-5-11 17:21, Michael Orlitzky wrote: The "e10" at the end is scientific notation. I don't know where the 'e' came from, but I would guess it stands for "exponent" and I would bet we use 'e' because there was no way to write a superscript when hand-held calculators were invented. O youth!

Re: [sage-support] Decimal Answers

2015-05-11 Thread Michael Orlitzky
On 05/11/2015 03:40 PM, Selah Bryce wrote: > Thank you. It gave me 9.13877574435632e10. What does that mean? > It means 9.13877574435632 times 10^10, or 91387757443.5632. The "e10" at the end is scientific notation. I don't know where the 'e' came from, but I would guess it stands for "exponent"

Re: [sage-support] Decimal Answers

2015-05-11 Thread Selah Bryce
Thank you. It gave me 9.13877574435632e10. What does that mean? On Monday, May 11, 2015 at 12:26:32 PM UTC-7, kcrisman wrote: > > >> > How do you find the decimal that is equal to 7950734897590/87 >> > >> >> You don't say how many places you want. There are lots of ways if that >> doesn't matte

Re: [sage-support] Decimal Answers

2015-05-11 Thread kcrisman
> > > > How do you find the decimal that is equal to 7950734897590/87 > > > > You don't say how many places you want. There are lots of ways if that > doesn't matter, for example 7950734897590/87.0 > > Or N(7950734897590/87) , assuming you haven't redefined N as N=10 or something during the s

Re: [sage-support] Decimal Answers

2015-05-11 Thread David Joyner
On Mon, May 11, 2015 at 3:15 PM, Selah Bryce wrote: > How do you find the decimal that is equal to 7950734897590/87 > You don't say how many places you want. There are lots of ways if that doesn't matter, for example 7950734897590/87.0 > -- > You received this message because you are subscribed

[sage-support] Decimal Answers

2015-05-11 Thread Selah Bryce
How do you find the decimal that is equal to 7950734897590/87 -- 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 post

Re: [sage-support] I need to do these basic operations with high-degree polynomials.

2015-05-11 Thread Vincent Delecroix
Did you know that Sage is shipped with documentation? On 11/05/15 19:30, Phoenix wrote: > > The polynomial is 1296*x^24 - 20736*x^22 + 129600*x^20 - 393984*x^18 + > 584496*x^16 - 362880*x^14 + 62208*x^12 > > - Can SAGE find the gcd of a polynomial and its derivative? http://sagemath.org/doc

Re: [sage-support] I need to do these basic operations with high-degree polynomials.

2015-05-11 Thread Phoenix
[ignore the previous post] The polynomial is 1296*x^24 - 20736*x^22 + 129600*x^20 - 393984*x^18 + 584496*x^16 - 362880*x^14 + 62208*x^12 - Can SAGE find the gcd of a polynomial and its derivative? polygen(QQ)#What doe this do? What is QQ# ? p = 1296*x^24 - 20736*x^22 + 129600*x^20 - 3

Re: [sage-support] I need to do these basic operations with high-degree polynomials.

2015-05-11 Thread Phoenix
The polynomial is 1296*x^24 - 20736*x^22 + 129600*x^20 - 393984*x^18 + 584496*x^16 - 362880*x^14 + 62208*x^12 - Can SAGE find the gcd of a polynomial and its derivative? polygen(QQ)#What doe this do? What is QQ# ? p = 1296*x^24 - 20736*x^22 + 129600*x^20 - 393984*x^18 + 584496*x^16 -

Re: [sage-support] I need to do these basic operations with high-degree polynomials.

2015-05-11 Thread Kristoffer Ryhl-Johansen
Of course if it isn't square free, you can fix that by dividing the polynomial with the greatest common divider of the polynomial and it's derivative. man. 11. maj 2015 kl. 12.54 skrev Dima Pasechnik : > well, you didn't paste the correct polynomial: > (the least degree is 12, not 1). > so one ge

Re: [sage-support] I need to do these basic operations with high-degree polynomials.

2015-05-11 Thread Dima Pasechnik
well, you didn't paste the correct polynomial: (the least degree is 12, not 1). so one gets sage: for (q,n) in p.squarefree_decomposition(): : print q.degree(), n, gp.polsturm(q) : 8 1 8 2 2 2 1 12 1 which gives you 11 real roots, just as computed by .roots() Right, I forgot

Re: [sage-support] I need to do these basic operations with high-degree polynomials.

2015-05-11 Thread Vincent Delecroix
On 11/05/15 07:43, Phoenix wrote: > > 1296*x^24 - 20736*x^22 + 129600*x^20 - 393984*x^18 + 584496*x^16 - > 362880*x^14 + 62208*x For the number of real roots, you can use PARI/GP (but your polynomial needs to be square free) sage: x = polygen(QQ) sage: p = 1296*x^24 - 20736*x^22 + 129600*x^20 -