How to express "x*(2^(1/x)-1)" in CVX

Are you @Wesen_Ning ? Your question looks very similar to How can cvx solve function like exp(x)*(exp(exp(-x))-1)? - #11 by Wesen_Ning . To minimize confusion, please stick with one username if possible.

Hello,could you tell me how to solve the functions like x*(exp(1/x) - 1) In detail

I provided there the solution

variables x z
{1,x,z} == exponential(1)

Then x*(exp(1/x) - 1) can be formulated as z - x.

The exponential(1) constraint will constrain x > 0.

2^(1/x) can be rewritten as exp(log(2)/x)
so just change
{1,x,z} == exponential(1)
to
{log(2),x,z} == exponential(1)