Hessian

Hessian - Messaggi

#1 Pubblicato: 02/10/2012 01:13:52
adiaz

adiaz

5 apprezzamenti in 25 post.

Gruppo: User

Hessian example.
Hessian.sm (11,53 KiB) scaricato 1646 volta(e).
1 utenti hanno apprezzato questo post
Radovan Omorjan 02/10/2012 03:04:00
#2 Pubblicato: 02/10/2012 02:27:02
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

:d
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
Radovan Omorjan 02/10/2012 03:04:00
#3 Pubblicato: 02/10/2012 03:16:45
adiaz

adiaz

5 apprezzamenti in 25 post.

Gruppo: User

Check this.
Clipboard02.gif
#4 Pubblicato: 02/10/2012 03:36:06
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

It is not a good idea to use smath subscripts in maple. Here I need to think a little bit.
smath_subscripts.PNG
Russia ☭ forever, Viacheslav N. Mezentsev
#5 Pubblicato: 02/10/2012 04:35:18
adiaz

adiaz

5 apprezzamenti in 25 post.

Gruppo: User

Nice bug. This a workaround.
Clipboard01.gif
#6 Pubblicato: 06/10/2012 03:17:29
adiaz

adiaz

5 apprezzamenti in 25 post.

Gruppo: User

I think that this is the better way to work with the Jacobian.

Alvaro.
Jacobian.sm (22,57 KiB) scaricato 1645 volta(e).
#7 Pubblicato: 06/10/2012 07:24:02
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: Moderator

Hello Alvaro,

But what to do if the vector function is defined this way?

[MATH=eng]Φ(X,t):-5*t*mat(el(X,1),el(X,2),2,1)+mat(el(X,2)*el(X,1)^2,el(X,2)^2*el(X,1)^2,2,1)[/MATH]

It will not work until t is a constant (scalar). Take a look at the pictures please.

Regards,
Radovan
Jacobian-problem1.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#8 Pubblicato: 06/10/2012 15:26:35
adiaz

adiaz

5 apprezzamenti in 25 post.

Gruppo: User

What doesn´t works is length, so can't include symbolic scalars outside vectors.

Regards.
Clipboard02.gif
#9 Pubblicato: 07/10/2012 02:40:21
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: Moderator

Hello Alvaro,

Actually, that is the point. I think that's the problem of the symbolic engine.
The first one gives the symbolic result

[MATH=eng](-5*t)*mat(el(X,1),el(X,2),2,1)+mat(el(X,2)*el(X,1)^2,el(X,2)^2*el(X,1),2,1)=mat(-5*el(X,1),-5*el(X,2),2,1)*t+mat(el(X,2)*el(X,1)^2,el(X,2)^2*el(X,1),2,1)[/MATH]

and the result is not a vector, therefore length() does not work.
The second one actually give you the vector symbolically

[MATH=eng](-5)*mat(el(X,1)*t,el(X,2)*t,2,1)+mat(el(X,2)*el(X,1)^2,el(X,2)^2*el(X,1),2,1)=mat(el(X,1)*(-5*t+el(X,2)*el(X,1)),el(X,2)*(-5*t+el(X,2)*el(X,1)),2,1)[/MATH]


Maybe the solution would be to say in advance what the variable t was - either scalar, vector or matrix. Something like "assume". If SMath assumed that t was a scalar, it should behave in accordance to that and give you the second correct result.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • Nuovi post
  • Nessun nuovo post