diff options
Diffstat (limited to 'demos/exam.sce')
-rw-r--r-- | demos/exam.sce | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/demos/exam.sce b/demos/exam.sce new file mode 100644 index 0000000..e054eff --- /dev/null +++ b/demos/exam.sce @@ -0,0 +1,5 @@ +function y = f(x) + y = 3*x(1)^2 + 2*x(1)*x(2) + x(2)^2 - 4*x(1) + 5*x(2) ; +endfunction + +[xval, fval, status, gradient, hessian] = intfminbnd(f,[1], [1 2],[2 6]) |