* Bug #9385 fixed - The type checking in trigonometric functions has been added.
[scilab.git] / scilab / modules / elementary_functions / macros / asind.sci
index 54e4daa..55de04d 100644 (file)
@@ -17,7 +17,7 @@ function y = asind(x)
         error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"),"asind", 1));
     end
 
-    if ~isreal(x)
+    if  type(x) <> 1 | ~isreal(x) then
         error(msprintf(gettext("%s: Wrong type for input argument #%d: Real matrix expected.\n"),"asind",1));
     end
     if min(x)<-1|max(x)>1 then