Ask Your Question

diana_doing_math_in_italy's profile - activity

2020-12-19 20:47:34 +0100 received badge  Notable Question (source)
2017-06-20 22:28:28 +0100 received badge  Popular Question (source)
2013-02-05 08:38:26 +0100 answered a question How do I find a solution of a set of inequalities?

Oh, i'm using REDHAT linux, python version 2.7

2013-02-05 08:36:44 +0100 asked a question How do I find a solution of a set of inequalities?

Help with coding please. I'm completely new to Sage.

I have a model system written in Python and I need to do recursively call a subroutine to determine the existence of a solution of a set of inequalities. We have a primitive subroutine written, but I'd rather not reinvent the wheel.

Mathematica can do it easily It takes two calls "Resolve[Exists[ {set of variables}, {set of inequalities}. The output is either True or False.

I tried to research calling Mathematica from my python code, but it seems like a big detour technical from my actual research. The same for Matlab. I need to call on an external symbolic calculus program, have the answer returned to python and continue computing. Sage seems perfect for this. The introduction video says that anything Mathematica can do, sage should be able to do it too. Here's my question: HOW?

I know you can import sage from any python script, but what packages do I import? What commands do I use?

For example, if the following set is my symbols: {g1 g2 g3 t11 t12 t21 t32 k11 k21 k22 k31} for this set of inequalities { k11 > g1t11 && k11 < g1t12 && 0 < g1t11 && k11 > 0 && k21 > g2t21 && (k21 + k22) < g2t21 && 0 < g2t21 && k22 < 0 && k31 > g3t32 && k31 > g3t32 && 0 < g1t11 && k11 > g1t11 && (k11k11) < (k11 + k11)g1*t11}.