Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline waluyo  
#1 Posted : 26 February 2012 05:59:10(UTC)
waluyo


Rank: Advanced Member

Groups: Registered
Joined: 22/10/2009(UTC)
Posts: 53
Man
Indonesia
Location: Gedongkuning, Jogjakarta

Was thanked: 1 time(s) in 1 post(s)
Dear SMath,

I did a simple derivative calculations with incorrect result.



If I use 2*tt^5 also the same problem.

regards
waluyo

Edited by user 26 February 2012 06:04:12(UTC)  | Reason: incorrect link

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 26 February 2012 10:29:38(UTC)
omorr


Rank: Administration

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

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

I think there is nothing nothing wrong with your results. I suppose you wanted to use these functions on every elements of vector "tt". This should be done this way:
for(i,range(1,length(tt)),line(el(s,i):s(el(tt,i)),el(ds,i):v(el(tt,i)),el(dv,i):a(el(tt,i)),3,1))
s=mat(6,-16,-26,-12,38,5,1)ds=mat(-24,-18,0,30,72,5,1)dv=mat(0,12,24,36,48,5,1)
Pay attention then when you multiply two vectors you will get their scalar product - not the vector which represents the product of their appropriate elements:
tt*tt=30 tt^2=30 sum((el(tt,i)^2),i,1,length(tt))=30

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline waluyo  
#3 Posted : 26 February 2012 13:31:00(UTC)
waluyo


Rank: Advanced Member

Groups: Registered
Joined: 22/10/2009(UTC)
Posts: 53
Man
Indonesia
Location: Gedongkuning, Jogjakarta

Was thanked: 1 time(s) in 1 post(s)
Thanks Radovan,

What I did was actually similar what I have done in Mathcad. That works in Mathcad with all correct answers.
I was thinking it would be OK in SMath, but actually not acceptable in SMath.

I have to do a bit programming to calculate every element of the vector in SMath.
Your explanation is clear to me.

Regards,
waluyo

Offline omorr  
#4 Posted : 26 February 2012 15:17:46(UTC)
omorr


Rank: Administration

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

Was thanked: 318 time(s) in 268 post(s)
You are welcome waluyo Good

Glad that I was of any help. Actually, I also often made mistakes in SMath mixing it with Mathcad, as well as you did.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Users browsing this topic
Guest
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.