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 thesansman  
#1 Posted : 19 September 2013 20:54:12(UTC)
thesansman

Rank: Newbie

Groups: Registered
Joined: 19/09/2013(UTC)
Posts: 1
Canada

Hello all

I have two vectors with scalar and direction that I want to add and get a resulting vector that has scalar and direction. I can't seem to figure this out? Basically I have a force problem that I am solving for and I figured this would be best done by adding the vectors to get the resulting force however I can't seem to figure this out on SMath.

Thank-you to all who answer.

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

Offline Davide Carpi  
#2 Posted : 20 September 2013 19:11:07(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
Location: Italy

Was thanked: 1332 time(s) in 876 post(s)
Can you post an example (from literature or made by you)?
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline kilele  
#3 Posted : 21 September 2013 00:14:59(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
oops I never tried this, I think he means this
http://www.1728.org/vectors.htm
I might be wrong but SMath does not calculate sum of vectors given in polar coordinates correctly
thanks 1 user thanked kilele for this useful post.
on 21/09/2013(UTC)
Offline mkraska  
#4 Posted : 21 September 2013 01:03:54(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1126 time(s) in 723 post(s)
Actually, there are several ways to calculate vector sums. In 2D the most natural way for vectors given in polar form is using complex numbers. In mechanics, we usually transform to cartesian components, as this can be generalized to 3D.

Unfortunately, this example reveals that the handling of sums in Maxima plugin is very weak at the moment. Therefore, we have to "surrender" for the moment.
File Attachment(s):
Example adding 2D vectors.sm (15kb) downloaded 23 time(s).
mkraska attached the following image(s):
vector.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Davide Carpi  
#5 Posted : 21 September 2013 01:06:30(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
Location: Italy

Was thanked: 1332 time(s) in 876 post(s)
Originally Posted by: kilele Go to Quoted Post
oops I never tried this, I think he means this
http://www.1728.org/vectors.htm
I might be wrong but SMath does not calculate sum of vectors given in polar coordinates correctly

I think you are right; BTW is a quite simple problem, so one can build his own function, with the most appropriate input standard that he think better and, like has Martin said, there are several ways to process the problem Good

Edited by user 21 September 2013 01:08:55(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline kilele  
#6 Posted : 21 September 2013 13:58:41(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
I think the question is about adding vectors entered in polar form as in the first expression. Note that SMath does not return the correct result.

Edited by user 21 September 2013 14:00:14(UTC)  | Reason: Not specified

kilele attached the following image(s):
sumofvectorsinpolarform.png
Offline mkraska  
#7 Posted : 21 September 2013 15:10:45(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1126 time(s) in 723 post(s)
Originally Posted by: kilele Go to Quoted Post
Note that SMath does not return the correct result.

Lists and list operations are not a good representation for vectors and vector operations. If lists obtained by pol2xy are to be added, they must be converted to vectors using sys2mat().

File Attachment(s):
Section lists operations.sm (44kb) downloaded 21 time(s).
mkraska attached the following image(s):
lists.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline kilele  
#8 Posted : 21 September 2013 15:38:27(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
@ioan92
Nice explanation on how to get a result. The point of the original question, I think, was a direct way using only polar notation provided by SMath
@mkraska
I forgot to apply sys2mat to an expression involving more than one system, anyway the result of that sum is incorrect.
thanks 1 user thanked kilele for this useful post.
on 21/09/2013(UTC)
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.