constructing restrictions inequality

yet2spark

New member
Joined
Sep 28, 2011
Messages
22
struggling to write this as a single restriction for integers p and q

if \(\displaystyle p=0\) then \(\displaystyle q\ne0\) and can be +ve or -ve
if \(\displaystyle q=0\) then \(\displaystyle p\ne0\) and can be +ve or -ve
otherwise \(\displaystyle p<q\) and they have the same sign

as three seperate ones I have

\(\displaystyle p=0\ \ \ \ \ \ q\ne0\)

\(\displaystyle q=0\ \ \ \ \ \ p\ne0\)

\(\displaystyle 0<\dfrac{p}{q}<1\)

any ideas ?

Thanks
 
Last edited:
It is not clear to me why, if you have n independent restrictions, you believe it is possible to express them in a single restriction.

It looked like it should be possible


Nor am I sure about the relevance of e * v, which has disappeared in your second formulation.

Took me a while to figure what you were talking about here, lol

and can be +ve or -ve -> and can be positive or negative
sorry for the confusion

However, you do not really have three independent restrictions.



\(\displaystyle pq = 0 \longrightarrow |p + q| = |e * v|\)

\(\displaystyle pq \ne 0 \longrightarrow \dfrac{p}{q} < 1\)
.
 
Top