[sage-support] is there assumptions in solve()?

2011-02-18 Thread Dmitry Shkirmanov
I asked Sage to solve the system of the equations: # var(pasquare,pbsquare,costhetasquare,Ea,Eb,ma,mb,mc) assume(Eama) solution=solve([pasquare*pbsquare*costhetasquare==((-ma^2-mb^2+mc^2)/2 + Ea*Eb)^2, pasquare==Ea^2-ma^2, pbsquare==Eb^2- mb^2],pasquare,pbsquare,Eb) # But there is the factor

[sage-support] Re: is there assumptions in solve()?

2011-02-18 Thread kcrisman
On Feb 18, 4:55 am, Dmitry Shkirmanov piminusme...@bk.ru wrote: I asked Sage to solve the system of the equations: # var(pasquare,pbsquare,costhetasquare,Ea,Eb,ma,mb,mc) assume(Eama) solution=solve([pasquare*pbsquare*costhetasquare==((-ma^2-mb^2+mc^2)/2 + Ea*Eb)^2, pasquare==Ea^2-ma^2,

[sage-support] Isolating real roots of exact univariate polynomial

2011-02-18 Thread zteitler
Hello, I have a polynomial e(x) of degree 13 with integer (exact) coefficients and 13 distinct real roots. However Sage only finds 11 of the roots. Unfortunately the polynomial is enormously long --- 11,755 characters. I'm including it at the end of this email but for the moment I'll just refer

[sage-support] Re: Isolating real roots of exact univariate polynomial

2011-02-18 Thread zteitler
I was not sufficiently careful in posting my polynomial e(x) and apparently some bad line breaks and spaces were introduced. This reply is to post a properly-wrapped copy of the polynomial. Zach Teitler 594813163982683595176185452130468519129644968918377817372539082858201843

[sage-support] Re: Isolating real roots of exact univariate polynomial

2011-02-18 Thread luisfe
Just for the record. The problem seems to be related to RIF. For the inexact ring RR, it works: len(e.roots(ring=RR)) 13 len(e.real_roots()) 13 numeric approximations of the two missing roots are: 0.953956769342757, 0.957223630414975 This pair of roots is exactly the pair of most close roots

Re: [sage-support] Re: Isolating real roots of exact univariate polynomial

2011-02-18 Thread D. S. McNeil
A somewhat simpler test case, which I think preserves the qualitative issue: sage: from sage.rings.polynomial.real_roots import real_roots sage: sage: x = polygen(QQ) sage: f = 2503841067*x^13 - 15465014877*x^12 + 37514382885*x^11 - 44333754994*x^10 + 24138665092*x^9 - 2059014842*x^8 -

[sage-support] How can I reconstruct the reference manual?

2011-02-18 Thread Simon King
Hi! I don't know what I did wrong, but apparently I completely destroyed the reference manual in my copy of Sage. I tried to do sage -docbuild reference html, but it gave me 810 warnings about non-existing files. There used to be a devel/sage/doc/en/reference/sage, but now that folder does not

[sage-support] Re: is there assumptions in solve()?

2011-02-18 Thread Dmitry Shkirmanov
After you get the output of the solve(), you can simplify() it to send it back to Maxima, and that might work to get the assumptions recognized. I tried it and received wrong answer. Let's consider for example the code: # reset() forget() var(a,b,c,d,f) assume(a-b0) expr=(a^2-b^2)*f

[sage-support] Re: How can I reconstruct the reference manual?

2011-02-18 Thread Volker Braun
I also noticed that, sometimes, the incremental document building gets confused to the point where it falls on its face. Simplest option is to wipe the doc tree and rebuild the whole documentation. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this

[sage-support] Re: How can I reconstruct the reference manual?

2011-02-18 Thread Simon King
Hi Volker, On 18 Feb., 21:45, Volker Braun vbraun.n...@gmail.com wrote: I also noticed that, sometimes, the incremental document building gets confused to the point where it falls on its face. Simplest option is to wipe the doc tree and rebuild the whole documentation. How do I wipe the doc

[sage-support] Re: How can I reconstruct the reference manual?

2011-02-18 Thread Volker Braun
No, delete the output from the doctree. That is, rm -rf doc/output. Then sage -b sage -docbuild reference html. Though I didn't quite understand which file you deleted. I don't have a pushout.rst file anywhere. -- To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: How can I reconstruct the reference manual?

2011-02-18 Thread John H Palmieri
If you're really missing files from SAGE_ROOT/devel/sage/doc/en/reference, then you could just manually copy them from an old installation of Sage (maybe just copy over the whole directory), or copy them from the main Sage spkg (sage-4.6.2.spkg), or you could revert those files from a

[sage-support] Re: notebook: how store a cell contents in a database

2011-02-18 Thread Jason Grout
On 2/17/11 10:09 PM, William Stein wrote: On Thu, Feb 17, 2011 at 4:24 AM, Pedro Cruzpedrocruzave...@gmail.com wrote: I'm writting an application were a person develops an algorithm using the sage notebook (on his computer, for example). That algorithm will be developed inside a notebook

[sage-support] Re: How can I reconstruct the reference manual?

2011-02-18 Thread Simon King
Hi Volker On 18 Feb., 22:07, Volker Braun vbraun.n...@gmail.com wrote: No, delete the output from the doctree. That is, rm -rf doc/output. Then sage -b sage -docbuild reference html. I am afraid this did not work. I deleted the output, and even after sage -ba, sage -docbuild did not do any