1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2016 - Scilab Enterprises
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- CLI SHELL MODE -->
9 fx = exp(-2*x)-x*x*x+6*x*x
11 ierr = execstr('[x, fx, info] = fsolve(10, foo, [], 1.0d-12)', 'errcatch');
12 assert_checkequal(ierr, 0);