1 | initial version |
Potentially this can be solved with QEPCAD package (which need to be installed first). Here is an example:
x,y = var('x y')
P = x^3 + y^2 + 1
qf = qepcad_formula.and_( P == 0, x >= 0, y >= 0 )
if qepcad( qf ) == 'FALSE':
print('P has no root in R+')
else:
print('P has a root in R+')
2 | No.2 Revision |
Potentially this can be solved with QEPCAD package (which need needs to be installed first). Here is an example:
x,y = var('x y')
P = x^3 + y^2 + 1
qf = qepcad_formula.and_( P == 0, x >= 0, y >= 0 )
if qepcad( qf ) qepcad(qf) == 'FALSE':
print('P has no root in R+')
else:
print('P has a root in R+')
3 | No.3 Revision |
Potentially this can be solved with QEPCAD package (which needs to be installed first). Here is an example:
x,y = var('x y')
P = x^3 + y^2 + 1
qf = qepcad_formula.and_( P == 0, x >= 0, y >= 0 )
if qepcad(qf) == 'FALSE':
print('P has no root in R+')
else:
print('P has a root in R+')
It can be run at Sagecell.
4 | No.4 Revision |
Potentially this can be solved with QEPCAD package (which needs to be installed first). Here is an example:
x,y = var('x y')
P = x^3 + y^2 + - 1
qf = qepcad_formula.and_( P == 0, x >= 0, y >= 0 )
if qepcad(qf) == 'FALSE':
try:
root = qepcad(qf,solution='any-point')
except ValueError:
print('P has no root in R+')
else:
print('P print(f'P has a root in R+')
root: {root}')