How to program sqrt((1-x)/x)

hi everyone,
As we know, if x<= 0.75, sqrt((1-x)/x) is convex. But could someone told me how to program sqrt((1-x)/x) in cvx.


Your function is the inverse of Express 1/(a^2+x^2) in cvx and therefore (probably) cannot be done. It is the same issue: if the function is convex only on a semi-artificial part of its natural domain then it is hard to express in conic form.