[Scilab-users] acos leads to complex values

Carrico, Paul paul.carrico at esterline.com
Tue Jan 29 16:45:59 CET 2019


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; 1] using MIN and MAX

-          Composed only of real values using ISREAL (all the vectors are correct)

Thus I do not understand why complex values appear ?

May it come from the vectorization ?

Paul



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190129/1ed94cc9/attachment.htm>


More information about the users mailing list