Re: [Scilab-users] acos leads to complex values

2019-01-29 Thread Stéphane Mottelet
Le 29/01/2019 à 16:45, Carrico, Paul a écrit : Dear All I spent some time in looking for a mistake in my code ; finally I’ve found that the ACOS of a real vector leads to some complex values (???) acos(Scar_P(:,1)./ CM_x_CN(:,1)) Are your really sure, because we may have --> x=-1-%eps  x 

[Scilab-users] acos leads to complex values

2019-01-29 Thread Carrico, Paul
Dear All I spent some time in looking for a mistake in my code ; finally I've found that the ACOS of a real vector leads to some complex values (???) acos(Scar_P(:,1) ./ CM_x_CN(:,1)) (the formula worked so far) I checked that the input values are correct: - Comprised between [-1;