Code covered by the BSD License  

Highlights from
Automatic Differentiation with Matlab Objects

Automatic Differentiation with Matlab Objects

by

 

01 Mar 2010 (Updated )

Automatically compute derivatives of functions, without using finite-difference approximations.

y=bh1(x)
function y=bh1(x)
% 
% Bohachecsky function 1
% Matlab Code by A. Hedar (Sep. 29, 2005).
% The number of variables n = 2.
% 
y=x(1)^2+2*x(2)^2-0.3*cos(3*pi*x(1))-0.4*cos(4*pi*x(2))+0.7;

Contact us