1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2016 - Samuel GOUGEON
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- CLI SHELL MODE -->
10 // <-- Non-regression test for bug 14648 -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/14648
15 // <-- Short Description -->
16 // isinf(complex(%inf,%inf)) and isinf(complex(%nan,%inf)) returned %F
17 // =============================================================================
18 c = complex(%inf*[1 1 -1 -1], %inf*[1 -1 1 -1]);
19 assert_checktrue(and(isinf(c)));
20 c = complex([%nan %nan %inf -%inf], [%inf -%inf %nan %nan]);
21 assert_checktrue(and(isinf(c)));