mathlab:1> octave octave:1> diary on octave:2> function y = f (x) > > y(1) = -2*x(1)^2 + 3*x(1)*x(2) + 4*sin(x(2)) - 6; > y(2) = 3*x(1)^2 - 2*x(1)*x(2)^2 + 3*cos(x(1)) + 4; > > endfunction octave:3> [x, info] = fsolve ("f", [1; 2]) x = 0.57983 2.54621 info = 1 octave:4> diary off octave:5> # more work (caution: this marks a comment) ...... octave:20> quit mathlab:2>
Email Comments or Questions to hanson@math.uic.edu