## 40 Reputation

18 years, 74 days

## one more question...

As you can see, mfx is a function of x, y and ufx. x and y are just single variables, but ufx is actually a vector of variables. Is the definition I gave above correct? What I am not very sure about is that I gave ufx in the argument list but refered to ufx[k] in the function expression.

## one more question...

As you can see, mfx is a function of x, y and ufx. x and y are just single variables, but ufx is actually a vector of variables. Is the definition I gave above correct? What I am not very sure about is that I gave ufx in the argument list but refered to ufx[k] in the function expression.

It does not solve my problem because I have to use the function mfx with different input arguments later. For example, I can define the alias as "alias(mfx(x)=mFX(x))". But later I need to do "mfx(t[k])". "alias" won't work in that case.

It does not solve my problem because I have to use the function mfx with different input arguments later. For example, I can define the alias as "alias(mfx(x)=mFX(x))". But later I need to do "mfx(t[k])". "alias" won't work in that case.

## thanks...

This definitely solved my main problem. Now I can compute higher order gradients of a function symbolically.

However, I am a little frustrated with how maple displays the result. It would expand the variables x and y in the dirivatives of the unknow function, as shown in the attached jpg figure.

I did define x as r*cos(theta) and y as r*sin(theta). Is there a way to suppress the display to show just x and y. Or maybe even better, do away with the part "(rcos(theta),rsin(theta)" and just display "D1,1(mx)"?

## thanks...

This definitely solved my main problem. Now I can compute higher order gradients of a function symbolically.

However, I am a little frustrated with how maple displays the result. It would expand the variables x and y in the dirivatives of the unknow function, as shown in the attached jpg figure.

I did define x as r*cos(theta) and y as r*sin(theta). Is there a way to suppress the display to show just x and y. Or maybe even better, do away with the part "(rcos(theta),rsin(theta)" and just display "D1,1(mx)"?

## thanks, but...

Would you mind explaining why you suggested "declare( (x, y)(r, theta) );" not to be used?

## thanks, but...

Would you mind explaining why you suggested "declare( (x, y)(r, theta) );" not to be used?