Vector Addition (scalar, direction) with vector result

Vector Addition (scalar, direction) with vector result - How to add vectors (scalar, direction) and get a vector result - Messages

#1 Posted: 9/19/2013 1:54:12 PM
thesansman

thesansman

0 likes in 1 posts.

Group: User

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.
#2 Posted: 9/20/2013 12:11:07 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Can you post an example (from literature or made by you)?
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 9/20/2013 5:14:59 PM
kilele

kilele

133 likes in 397 posts.

Group: User

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
1 users liked this post
Davide Carpi 9/20/2013 5:57:00 PM
#4 Posted: 9/20/2013 6:03:54 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

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.
Example adding 2D vectors.sm (14 KiB) downloaded 46 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#5 Posted: 9/20/2013 6:06:30 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

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
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 Posted: 9/21/2013 6:58:41 AM
kilele

kilele

133 likes in 397 posts.

Group: User

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.

sumofvectorsinpolarform.png
#7 Posted: 9/21/2013 8:10:45 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

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


lists.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#8 Posted: 9/21/2013 8:38:27 AM
kilele

kilele

133 likes in 397 posts.

Group: User

@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.
1 users liked this post
ioan92 9/21/2013 8:57:00 AM
  • New Posts New Posts
  • No New Posts No New Posts