Skip to content

Instantly share code, notes, and snippets.

@niklasfi
Created April 20, 2011 13:18
Show Gist options
  • Save niklasfi/931306 to your computer and use it in GitHub Desktop.
Save niklasfi/931306 to your computer and use it in GitHub Desktop.
Matrix f(const Matrix& in){
double x = in(0,0);
double y = in(0,1);
Matrix m(2,1);
m[0][0] = x - y*y + 3 * log(abs(x));
m[1][0] = 2*x*x-x*y-5*x+1;
return m;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment