Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Solving system of inequalities in one variable

I am probably missing something about how to use sage:

If I run this:

x = var('x')
a = var('a')
solve([a*x>0,a>0],[x])

I get this results:

[[0 < x, a > 0], [x < 0, -a > 0, a > 0]]

However, I would expect something like:

[0 < x, a > 0]

What am I missing?

Thanks