4.33333

4.3 | 6 ratings Rate this file 43 Downloads (last 30 days) File Size: 122.51 KB File ID: #15235

Automatic Differentiation for Matlab

by Martin Fink

 

08 Jun 2007 (Updated 11 Jun 2007)

This package provides automatic first and second derivatives for vector-functions and matrices.

| Watch this File

File Information
Description

This package uses forward automatic differentiation to calculate the first and second derivatives of provided user functions. It is 25-30 times faster than
commercially available packages (June 2006).

To calculate the derivatives of function myFunc with respect to x at x=x0 you call

x = myAD(x0);
result = myFunc(x);
functionValue = getvalues(result);
derivatives = getderivs(result);

MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
22 Jun 2007 carlos david vinante bewaller  
17 Jul 2007 Julian Montanez Vega

is very insteresting
excellent work

24 Sep 2007 Cristian Montes

This is great! Thanks so much. Would you like to port it to R?

17 Sep 2008 masharvi shams

how to use this?plz, help me

08 Apr 2009 Adam Attarian  
06 May 2009 David

This package is only useful if there are no matrix operations in your function, and this includes repmat on vectors. An operation as simple as

est = input_variable(1) * internal_function_vector(1:N)

falls outside the bounds of this routine, so be warned!

25 May 2009 Achim Schaedle

nice and usefull

31 Dec 2010 Gabriel Peyre  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
differentiation Egon Geerardyn 15 Jan 2012 09:23:28
automatic differentiation Egon Geerardyn 15 Jan 2012 09:23:28
derivative Egon Geerardyn 15 Jan 2012 09:23:28

Contact us at files@mathworks.com