03 March 2016 0 5K Report

Please, I need the C++ equivalent for this function in matlab: Solve with this arguments: Principalvalue

Thanks;

Example: 

Pick only one solution using PrincipalValue:

>>solve(sin(x) + cos(2*x) == 1, x, 'PrincipalValue', true)

>>ans = 0

Similar questions and discussions