[sage-support] Re: Find real root

2015-01-09 Thread Dominique Laurain
Or, if you question is more "sage" than "math" question...

...using sympy from the SAGE-wiki help and website 
http://byumcl.bitbucket.org/bootcamp2013/labs/sympy.html :

example with no "x" symbolic and another one with symbolic "x" 

import sympy as sym
from sympy import Symbol
x = sympy.Symbol("x")
y = sympy.Symbol("y")
roots = sym.solve(y**3 + 2*y**2 + 8, y)
print(roots)
roots = sym.solve(x^2*y**3 + (5*x+3)*2*y**2 + 8*x, y)
print(roots)

and filtering the complex (with I) symbolic roots you get the real one.


On Friday, 9 January 2015 11:35:01 UTC+1, Santanu wrote:
>
> Dear all,
>
> I have one polynomial 
> f_x(y) =y^3 +f_1(x) y^2 +f_2(x) y + f_3(x). 
>
> Since it is a cubic polynomial, it has atleast 
> one real root.
> I want to find that real root  as a function of x.  
> I know that x \in [a,b]. 
>
>

-- 
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 this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Sage server failed to start

2015-01-09 Thread kcrisman


I posted trac #17610 which is ready for review.  It now tries starting it 
> in a Terminal if it fails for any reason.  This should be more robust to 
> any sort of corruption, and also help show the problem in the cases where 
> it does fail.
>
>
For reference, this does fix the problems indicated; I hope it will also 
fix the problem of the original poster! 

-- 
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 this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Sage server failed to start

2015-01-09 Thread kcrisman

>
>
>>  I get about one zero sized users.pickle 2-3 times per week.
>>>
>> Really, how does that happen? I am also running a sagenb server on my 
>> university and this never happened.
>>
>
> It is not a server, it is standalone sage installs, and ~/.sage is on NFS. 
> It seems to be NOT related to disk space quotas.
>

Given how often students log out or are logged out by naughty instructors 
:) from their accounts in that particular lab, it's perhaps not surprising. 
 I agree with Jeroen that perhaps 6.5 should solve some of these issues.

-- 
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 this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Find real root

2015-01-09 Thread David Joyner
On Fri, Jan 9, 2015 at 5:34 AM, Santanu Sarkar
 wrote:
> Dear all,
>
> I have one polynomial
> f_x(y) =y^3 +f_1(x) y^2 +f_2(x) y + f_3(x).
>
> Since it is a cubic polynomial, it has atleast
> one real root.
> I want to find that real root  as a function of x.
> I know that x \in [a,b].
>


There is a formula you can try to use:
http://en.wikipedia.org/wiki/Cubic_function#General_formula_for_roots


> --
> 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 this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] set IP sage 6.4

2015-01-09 Thread achmet ali
I use sage 6.4 now
I have a little problem for the IP settings
I had to change the DHCP IP to IP Static
How to enter the command line linux centos sage 6.4 ?

-- 
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 this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Find real root

2015-01-09 Thread Santanu Sarkar
Dear all,

I have one polynomial
f_x(y) =y^3 +f_1(x) y^2 +f_2(x) y + f_3(x).

Since it is a cubic polynomial, it has atleast
one real root.
I want to find that real root  as a function of x.
I know that x \in [a,b].

-- 
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 this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.