File: extFunWithFirstAndSecondDerivs.m

package info (click to toggle)
dynare 4.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 40,640 kB
  • sloc: fortran: 82,231; cpp: 72,734; ansic: 28,874; pascal: 13,241; sh: 4,300; objc: 3,281; yacc: 2,833; makefile: 1,288; lex: 1,162; python: 162; lisp: 54; xml: 8
file content (9 lines) | stat: -rw-r--r-- 124 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
function [y df d2f]=extFunWithFirstAndSecondDerivs(a,b)
y=a*(b^2);

da=b^2;
db=2*a*b;
df=[da db];

d2f=[0 2*b; 2*b 2*a];
end