[sage-support] qepcad and connected set

2023-01-14 Thread Cary Cherng
Given a collection of multivariate inequalities (field of real numbers) I would like to know if the set defined is connected. Does Sage have a easy way through qepcad to answer such a question? Documentation shows that there is a function connected_subset https://doc.sagemath.org/html/en/refere

[sage-support] Re: Error installing package qepcad-1.5.0

2013-03-07 Thread Cary Cherng
mkproto mkmake and mklib are tsch scripts. sudo apt-get install tsch solved the problem. On Thursday, March 7, 2013 5:06:02 PM UTC-8, Cary Cherng wrote: > > Machine information: > Linux ccherng 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 > i686 athlon i686 GNU/Li

[sage-support] Re: Error installing package qepcad-1.5.0

2013-03-07 Thread Cary Cherng
kcrisman wrote: > > > > On Thursday, March 7, 2013 5:25:54 AM UTC-5, Cary Cherng wrote: >> >> I tried installing qepcad with >> sudo sage -i qepcad >> >> > I assume you are on some brand of Linux - more processor, etc., info would > be helpful.

[sage-support] Error installing package qepcad-1.5.0

2013-03-07 Thread Cary Cherng
I tried installing qepcad with sudo sage -i qepcad Linking failed with an error about the following file missing /usr/lib/sagemath/spkg/build/qepcad-1.50/src/saclib2.2.0/lib/saclibo.a The tail end of the error output log: Linking the optimized program.. g++ -O4 -I/usr/lib/sagemath/spkg/bui

[sage-support] Re: solve_ineq does not always return the empty set as [ ]

2012-12-03 Thread Cary Cherng
g1,g2 = var('g1,g2') sage: t1 = large polynomial sage: t2 = large polynomial sage: solve_ineq([t1 <= t2 , t1 > t2],[g1,g2]) # output that is large and impossible to tell visually that it is the empty set On Monday, December 3, 2012 9:05:57 PM UTC-8, P Purkayastha wrote: > > O

[sage-support] solve_ineq does not always return the empty set as [ ]

2012-12-03 Thread Cary Cherng
In the below why does solve_ineq called with the inequalities t1 <= t2 , t1 > t2 not return [ ], but the other invocations of solve_ineq return the empty set as [ ] ? sage: g1,g2 = var('g1,g2') sage: t1 = g1^2*g2^2 sage: t2 = g1^2*g2 sage: solve_ineq([t1 <= t2 , t1 > t2],[g1,g2]) [[g1 == 0, 1 <

[sage-support] Re: solve_ineq() fails

2012-12-03 Thread Cary Cherng
p2 > 0],[g1,g2]) On Monday, December 3, 2012 12:49:19 AM UTC-8, P Purkayastha wrote: > > On 12/03/2012 09:44 AM, Cary Cherng wrote: > > I tried using solve_ineq in the notebook in the simple way below and got > > an error. It seems to be related to > > http://trac

[sage-support] solve_ineq() fails

2012-12-02 Thread Cary Cherng
I tried using solve_ineq in the notebook in the simple way below and got an error. It seems to be related to http://trac.sagemath.org/sage_trac/ticket/11520 Is there a workaround? R. = PolynomialRing(QQ) solve_ineq([g1 > g2],[g1,g2]) Traceback (most recent call last): File "", line 1, in F

[sage-support] Re: Casting from type rational functions to type polynomials

2010-10-23 Thread Cary Cherng
That worked. On Oct 23, 7:41 pm, John H Palmieri wrote: > On Oct 23, 7:20 pm, Cary Cherng wrote: > > > R. = > > PolynomialRing(QQ) > > > Eventually I compute a polynomial p with something like > > > p = p1 / q.determinant() > > > Sage gives p with

[sage-support] Casting from type rational functions to type polynomials

2010-10-23 Thread Cary Cherng
R. = PolynomialRing(QQ) Eventually I compute a polynomial p with something like p = p1 / q.determinant() Sage gives p with type fraction field. How do I cast p back to the polynomial ring so I can call degree() on it? -- To post to this group, send email to sage-support@googlegroups.com To uns

[sage-support] Creating large matrix hangs

2010-10-22 Thread Cary Cherng
I have a sage script that ultimately creates a python list called MMv of length 35354. Each element is a list of length 55. This is in effect a 35354 by 55 matrix. Print statements show that when I run my script with "load two.sage" it gets stuck at taking this list and creating a matrix. I am usin

[sage-support] Re: Test if p(x) is in a ring generated by polynomials

2010-09-08 Thread Cary Cherng
ebner basis, but that might be more than you need for this > specific case). > > regards > john perry > > On Sep 8, 1:57 am, Cary Cherng wrote: > > > > > I am not familiar with algebraic geometry or its terminology and new > > to sage. > > > p_1,...p

[sage-support] Test if p(x) is in a ring generated by polynomials

2010-09-07 Thread Cary Cherng
I am not familiar with algebraic geometry or its terminology and new to sage. p_1,...p_n and q are elements of Z[x_1,...,x_n]. In my context I have some evidence that q can be written as something like q = p_1*p_2 + ... + p_5*p_6. In other words q is a degree 2 polynomial in the p_i's. Can Sage fi

[sage-support] Re: Testing if polynomial is in ideal

2010-09-07 Thread Cary Cherng
nevermind I solved my problem. On Sep 7, 5:49 pm, Cary Cherng wrote: > This works but is too slow for more complicated examples. Is there a > way to speed up "x in I" for much bigger examples? Or does this > already use the fastest algorithm based on groebner basis or somet

[sage-support] Re: Testing if polynomial is in ideal

2010-09-07 Thread Cary Cherng
This works but is too slow for more complicated examples. Is there a way to speed up "x in I" for much bigger examples? Or does this already use the fastest algorithm based on groebner basis or something else. On Sep 6, 9:22 pm, Alex Ghitza wrote: > On Mon, 6 Sep 2010 20:42:43 -070

[sage-support] Testing if polynomial is in ideal

2010-09-06 Thread Cary Cherng
Given p_i and q in Q[x_1,...,x_n] I want to see if q is in the ideal (p1,...,pm). Does sage have easy support for this? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options,

[sage-support] Re: Factoring denominator of a rational function

2010-09-04 Thread Cary Cherng
Ok i think I've resolved my problems by avoiding var for declaring variables and instead using R. = PolynomialRing(QQ) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, v

[sage-support] Re: Factoring denominator of a rational function

2010-09-04 Thread Cary Cherng
r the denominator? On Sep 4, 2:06 pm, "Justin C. Walker" wrote: > On Sep 4, 2010, at 13:54 , Cary Cherng wrote: > > > And thats another problem. How do I tell sage to give me the > > denominator of this rational function? > > In general, the .denominator and .numer

[sage-support] Re: Factoring denominator of a rational function

2010-09-04 Thread Cary Cherng
lynomial division, but should be > in the manual or help. > > Robert > > On 4 zář, 05:54, Cary Cherng wrote: > > > > > I have a rational function P(x)/Q(x) with numerators and denominators > > of very large degree. From the context I know that a certain > >

[sage-support] Re: Factoring denominator of a rational function

2010-09-04 Thread Cary Cherng
I should have given the original full context. These polynomials P,Q, and p are all in Z[x1,...,xn]. They are all multivariate. On Sep 3, 8:54 pm, Cary Cherng wrote: > I have a rational function P(x)/Q(x) with numerators and denominators > of very large degree. From the context I know

[sage-support] Factoring denominator of a rational function

2010-09-03 Thread Cary Cherng
I have a rational function P(x)/Q(x) with numerators and denominators of very large degree. From the context I know that a certain polynomial p(x) should divide the denominator. If I multiply the numerator by p(x) giving p(x)*P(x)/Q(x) how do I get sage to cancel p(x) with the factor in Q(x)? In o