Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline adiaz  
#1 Posted : 02 October 2012 08:13:52(UTC)
adiaz


Rank: Member

Groups: Registered
Joined: 03/06/2009(UTC)
Posts: 25

Was thanked: 5 time(s) in 5 post(s)
Hessian example.
File Attachment(s):
Hessian.sm (12kb) downloaded 69 time(s).
adiaz attached the following image(s):
Hessian.gif
thanks 1 user thanked adiaz for this useful post.
on 02/10/2012(UTC)
Offline uni  
#2 Posted : 02 October 2012 09:27:02(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,175
Man
Russian Federation

Was thanked: 1011 time(s) in 587 post(s)
Biggrin
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 1 user thanked uni for this useful post.
on 02/10/2012(UTC)
Offline adiaz  
#3 Posted : 02 October 2012 10:16:45(UTC)
adiaz


Rank: Member

Groups: Registered
Joined: 03/06/2009(UTC)
Posts: 25

Was thanked: 5 time(s) in 5 post(s)
Check this.
adiaz attached the following image(s):
Clipboard01.gif
Clipboard02.gif
Offline uni  
#4 Posted : 02 October 2012 10:36:06(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,175
Man
Russian Federation

Was thanked: 1011 time(s) in 587 post(s)
It is not a good idea to use smath subscripts in maple. Here I need to think a little bit.
uni attached the following image(s):
smath_subscripts.PNG
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
Offline adiaz  
#5 Posted : 02 October 2012 11:35:18(UTC)
adiaz


Rank: Member

Groups: Registered
Joined: 03/06/2009(UTC)
Posts: 25

Was thanked: 5 time(s) in 5 post(s)
Nice bug. This a workaround.
adiaz attached the following image(s):
Clipboard01.gif
Offline adiaz  
#6 Posted : 06 October 2012 10:17:29(UTC)
adiaz


Rank: Member

Groups: Registered
Joined: 03/06/2009(UTC)
Posts: 25

Was thanked: 5 time(s) in 5 post(s)
I think that this is the better way to work with the Jacobian.

Alvaro.
File Attachment(s):
Jacobian.sm (23kb) downloaded 72 time(s).
Offline omorr  
#7 Posted : 06 October 2012 14:24:02(UTC)
omorr


Rank: Administration

Groups: Registered, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Alvaro,

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

Φ(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)

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

Regards,
Radovan

Edited by user 06 October 2012 14:39:44(UTC)  | Reason: Not specified

omorr attached the following image(s):
Jacobian-problem.png
Jacobian-problem1.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline adiaz  
#8 Posted : 06 October 2012 22:26:35(UTC)
adiaz


Rank: Member

Groups: Registered
Joined: 03/06/2009(UTC)
Posts: 25

Was thanked: 5 time(s) in 5 post(s)
What doesn´t works is length, so can't include symbolic scalars outside vectors.

Regards.
adiaz attached the following image(s):
Clipboard02.gif
Offline omorr  
#9 Posted : 07 October 2012 09:40:21(UTC)
omorr


Rank: Administration

Groups: Registered, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Alvaro,

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

(-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)

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

(-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)


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!"
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.