I am doing a MATLAB assignment and it includes the evaluation of a returned lambertw()
function. However, since I am doing Monte Carlo here, I need to use a branch of the function which is not the default branch. For example, change the parameter from the returned default zero
lambertw(0, -7661844165657387/9007199254740992*exp(-1))
to minus one
lambertw(-1, -7661844165657387/9007199254740992*exp(-1)).
Is there a way to do this automatically?
p.s. this is a follow up to my previous question