NC2d

description:

[g,varnew] = NC2d(f) computes the second derivative of the polynomial f:

where h = (h1, h2, ... , hn) and the polynomial f does not contain any of the variables h1, h2, ...

arguments:

NCpoly representing the polynomial f

output:

g is an NCpoly representing the second derivative of the polynomial f

varnew is a cell containing all NCvars and h

possible usage:

NC2d(f)

example:

>> [g,var]=NC2d(x^2+x*y-z^3)

g = 2*h1^2+2*h1*h2-2*h3^2*z-2*h3*z*h3-2*z*h3^2

var = 'x'

      'h1'

      'y'

      'h2'

      'z'

      'h3'