[sage-support] Re: Sage and python subprocess

2015-09-19 Thread Paul Royik
UPDATE: I've managed to get the error: Setting permissions of DOT_SAGE directory so only you can read and write it. os.chmod(DOT_SAGE, _desired_mode)\nOSError: [Errno 1] Operation not permitted: \'/var/www/.sage/ How can I fix it? -- You received this message because you are subscribed to th

[sage-support] Sage and python subprocess

2015-09-19 Thread Paul Royik
Just installed sage-6.8 >From python program I run the following command: res = check_output(["/opt/mathenv/sage-6.8/sage","/opt/mathenv/mathsite/mathsite/scripts/eq_solver.sage","x-5", "x",'-oo', '1', 'oo', '1', '14']) But this piece of code gives me the following error: CalledProc

[sage-support] Sage doesn't solve

2015-06-01 Thread Paul Royik
Why solve(-(21/20)**(12*x) + 120,x,explicit_solutions=True) gives me empty set? -- 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...@googleg

Re: [sage-support] find_root for systems

2015-05-08 Thread Paul Royik
I know the Newton method. My question: is there built-in support in sage and how in general find all roots? You've got approximate solution, but there is another one. On Thursday, May 7, 2015 at 12:59:22 PM UTC+3, vdelecroix wrote: > > On 06/05/15 14:55, Paul Royik wrote: >

Re: [sage-support] find_root for systems

2015-05-06 Thread Paul Royik
For example, x^5+y^5=7 x*sin(y)=1 On Wednesday, May 6, 2015 at 10:08:54 AM UTC+3, jori.ma...@uta.fi wrote: > > On Tue, 5 May 2015, Paul Royik wrote: > > > How can this be applied to systems? > > What kind of systems? Let us define f(x,y): > > f(\sqrt{2}, \sqrt[3}) =

Re: [sage-support] find_root for systems

2015-05-05 Thread Paul Royik
How can this be applied to systems? On Wednesday, May 6, 2015 at 1:28:55 AM UTC+3, Dima Pasechnik wrote: > > > > On Tuesday, 5 May 2015 20:25:46 UTC+1, Paul Royik wrote: >> >> I meant without discontinuous functions. >> What is the general approach even i

Re: [sage-support] find_root for systems

2015-05-05 Thread Paul Royik
I meant without discontinuous functions. What is the general approach even in numerical solving of "school" functions on the interval? Can sage do that? On Tuesday, May 5, 2015 at 9:53:22 PM UTC+3, Dima Pasechnik wrote: > > This is an overtly optimistic point of view that find_root can solve >

Re: [sage-support] find_root for systems

2015-05-05 Thread Paul Royik
introduction on solving equations in sage here: > http://www.sagemath.org/doc/tutorial/tour_algebra.html > > If you have a specific system of equations in mind, you should share them. > > > On 05/05/2015 08:06 AM, Paul Royik wrote: > > How can I find numerical root

[sage-support] find_root for systems

2015-05-05 Thread Paul Royik
How can I find numerical root for the system of equations? -- 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 to

[sage-support] Re: Sage find_root error

2015-05-04 Thread Paul Royik
This is incorrect question. You are actually asking what is sage for? I need to solve arbitrary equations, so I don't know ahead of time how it will look like. On Sunday, May 3, 2015 at 2:55:14 PM UTC+3, Dominique Laurain wrote: > > > What can be done ? > It depends of what you are looking for.

[sage-support] Re: Sage find_root error

2015-05-03 Thread Paul Royik
is in range [pi/2 - xtol, pi/2 + xtol] for your function > For me, "find_root_approximate" would have been better name than find_root > > On Sunday, 3 May 2015 00:50:55 UTC+2, Paul Royik wrote: >> >> Don't know why but find_root(x*tan(x), -1, 5) gives me 1.570796 which is >>

[sage-support] Sage find_root error

2015-05-02 Thread Paul Royik
Don't know why but find_root(x*tan(x), -1, 5) gives me 1.570796 which is incorrect, since it is pi/2, the value at which tangent doesn't exist. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving em

Re: [sage-support] Re: Simplify square root of square

2015-02-27 Thread Paul Royik
Thank you! On Friday, February 27, 2015 at 5:41:07 PM UTC+2, vdelecroix wrote: > > Here is one way... not sure it is the best > > sage: eq1 = sqrt(cos(4*x)+1) > sage: eq2 = eq1.simplify_trig() > sage: eq2 > sqrt(8*cos(x)^4 - 8*cos(x)^2 + 2) > > The next step consists in factoring what is insi

[sage-support] Re: Simplify square root of square

2015-02-27 Thread Paul Royik
OK. Let x is real. How to rewrite sqrt(cos(4x)+1) into sqrt(2)abs(cos(2x))? On Friday, February 27, 2015 at 3:36:59 PM UTC+2, Simon King wrote: > > Hi Paul, > > On 2015-02-27, Paul Royik > wrote: > > What is the way to consistently simplify square roots of square

[sage-support] Simplify square root of square

2015-02-27 Thread Paul Royik
What is the way to consistently simplify square roots of squares? Examples: sqrt((x+1)^2) - > x+1 sqrt(cos(4*x)+1) -> sqrt(2)cos(2x) -- 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

Re: [sage-support] Sympy in Sage

2015-02-23 Thread Paul Royik
h.org/packages/upstream/sympy/index.html > > Note that it will be update to 0.7.6 with > > http://trac.sagemath.org/ticket/17644 > > Vincent > > 2015-02-23 16:59 UTC+01:00, Paul Royik >: > > > Hello. > > > > > > from sympy import asec

Re: [sage-support] Sympy in Sage

2015-02-23 Thread Paul Royik
Hello. from sympy import asec On Monday, February 23, 2015 at 4:20:31 PM UTC+2, vdelecroix wrote: > > Hello, > > Which command did you tried exactly? "import sympy" works for me. > > Vincent > > 2015-02-23 14:46 UTC+01:00, Paul Royik >: > > > He

[sage-support] Sympy in Sage

2015-02-23 Thread Paul Royik
Hello. I'm trying to use sympy insinde sage. But I've got following error: ImportError: cannot import name asec As far as I know older versions of sympy didn't have asec class. So, what version of sympy does sage uses? I use sage 6.5 -- You received this message because you are subscribed to th