janelavis
Newbie
Offline
Posts: 5
«
Embed this message
Reply #30 on: September 22, 2009, 01:50:31 pm » posted from:Phagwara,Punjab,India
I think that you need to think a little more about the design of your Vector class. You need to decide upon a minimal but complete interface for Vector. It looks like you could do with some member variables instead of creating local variables named size and degree
Logged
Fu-Kwun Hwang
«
Embed this message
Reply #31 on: October 05, 2009, 10:59:25 am » posted from:Taipei,T\'ai-pei,Taiwan
Thank you for your comment. I am not a professional programmer. I am a physicist , I enjoy the fun of physics and I hope the simulations I have created can help users to enjoy the fun of physics, too!
I hope you can create better simulation to help other, too! :-) You are welcomed to upload it here and share with others.
Logged
wenouyang
Newbie
Offline
Posts: 1
«
Embed this message
Reply #32 on: May 14, 2010, 09:52:14 pm » posted from:Livonia,Michigan,United States
Hello, Professor Hwuang,
Would you please send me the Java code for this version of vector addition? I like your work and it illustrated the concept clearly!
Thank you!
Wen
Logged
Fu-Kwun Hwang
«
Embed this message
Reply #33 on: May 20, 2010, 05:19:42 pm » posted from:Taipei,T'ai-pei,Taiwan
The source code is available as attached file. Please download it by yourself.
Logged
faran
Newbie
Offline
Posts: 3
«
Embed this message
Reply #34 on: July 06, 2011, 03:34:59 am » posted from:-,-,PAKISTAN
Hi folk, I need help.
I encountered a question in my high school exam that was
" The resultant of two anti-parallel vectors
A and
B is:
1)
A+B 2)
A-B "
What is the correct answer?
I was told that it is A-B, but how could it be A-B, when resultant it self means that it is bascially the addition of two vectors.
If B vector is anti to A, then it should be -B as convention, but what if we say that -
B =
C Then it becomes A+C, means we have to add them both to get answer.
I'm stuck please help me out.
Logged
Fu-Kwun Hwang
«
Embed this message
Reply #35 on: July 06, 2011, 06:28:00 pm » posted from:Taipei,T'ai-pei,Taiwan
two anti-parallel vectors
and
means
The sum of two vectors
and
is
Logged
faran
Newbie
Offline
Posts: 3
«
Embed this message
Reply #36 on: July 07, 2011, 03:05:59 am » posted from:-,-,PAKISTAN
Thanks for the response.
But what if the two vectors are of different magnitude and are anti parallel.
Then infact we'll have to subtract their magnitudes that will be |A-B| , but what if we want to write them in vector form, what would we write them if we want to get resultant?
A-B or
A+B Some people told me that as they are anti-parallel, then their resultant will be ultimately
A+ (
-B ),
i.e
A-B One of my friend argued that the resultant should be A+B because
Let two vectors
A and
B ,
A = |A| (
k )
B = |B| (-
k )
Now
Resultant:
A + (
-B )
[|A| (k)] + [|B| (-k)]
As |B|(-k)=
B so
A +
B ----
Now if it is A+B, then it means that they would be added to each other, and their magnitutude should also be added?
Please do try to understand what I've written, and help me.
Waiting for the reply
Logged
faran
Newbie
Offline
Posts: 3
«
Embed this message
Reply #37 on: July 08, 2011, 02:57:45 am » posted from:-,-,PAKISTAN
Logged
Fu-Kwun Hwang
«
Embed this message
Reply #38 on: July 08, 2011, 04:32:35 pm » posted from:Taipei,T'ai-pei,Taiwan
The sum of two vectors is always
.
For example: if
(1.0-0.2)
if
, two vector are parallel.
(1.0+0.2)
Logged
THERITESHBABA
Newbie
Offline
Posts: 2
«
Embed this message
Reply #39 on: January 02, 2012, 12:35:36 pm » posted from:Kolkata,West Bengal,India
if the angle between two vectors is
a &
b is @ and angle between vectors
a +
b and
a is O
then
tan@=(b sinO )/(a +b cosO )
now
tan2 @=(b sinO)2 /(a +b cosO)2
now
tan2 @= sec2 @ -1
and
sec2 @ =1/cos2 @
{a 2 sec2 O + b 2 + 2a b secO}
so cos
2 @=
____________________________________________________________________
{a 2 sec2 O + b 2 sec2 O + 2ab secO}
if @ =0
b 2 =b 2 cos2 O
O=0
if @ =90
a =-b cosO
if O=90
-b 2
tan
2 @=
____
a 2 +b 2
HERE BOLD CHARACTERS REPRESENT VECTORS.
« Last Edit: January 02, 2012, 01:45:26 pm by THERITESHBABA »
Logged
THERITESHBABA
Newbie
Offline
Posts: 2
«
Embed this message
Reply #40 on: January 02, 2012, 01:48:13 pm » posted from:Kolkata,West Bengal,India
if the angle between two vectors is a & b is @ and angle between vectors a+b and a is O
then
tan@=(bsinO )/(a+bcosO )
now
tan2 @=(bsinO)2/(a+bcosO)2
now
tan2@= sec2@ -1
and
sec2@ =1/cos2@
{a2 sec2O + b2 + 2absecO}
so cos2@=
{a2sec2O + b2sec2O + 2absecO}
if @ =0
b2=b2cos2O
O=0
if @ =90
a=-bcosO
if O=90
-b2
tan2@= _________________
a2+b2
Logged
nateuer
watchlist
Newbie
Offline
Posts: 1
«
Embed this message
Reply #41 on: November 17, 2012, 09:42:01 pm » posted from:Dhaka,Dhaka,Bangladesh
-*-
I have just seen it,nice I love that.
Logged
koclup1580
watchlist
Newbie
Offline
Posts: 16
«
Embed this message
Reply #42 on: December 29, 2012, 01:13:07 pm » posted from:,,Satellite Provider
thanks
Logged