Hello...I really want to make a program that can do vector addition and subtraction, given two or more vectors. The problem is, I'm not sure of the math that would be needed to do it. See, I want the person to be able to enter two or more vectors with a magnitude (length) and angle (with 0 degrees being 'up' and 90 degrees being 'right'). I'm struggling a bit with the actual math that needs to be done. I can do it on paper jsut fine, because the process of taking a bearing of 1125 degrees and making it 45, etc, things of this nature - is logical. But programs don't understand logic. That's where I hit the roadblock.(adsbygoogle = window.adsbygoogle || []).push({});

I don't think you need to know any programming whatsoever to answer this (granted you know the answer)...just be able to say things like:

1. Sbtract angle a from angle b, save to variable a.

etcetera. I'd a little fuzzy on the part of figuring out how to "get two vectors together" to be prepared to use the law of cosines and whatnot to figure the resultant out. Can you help?

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Making Vector Addition programmeable

Loading...

Similar Threads - Making Vector Addition | Date |
---|---|

Insights Make Units Work for You - Comments | Dec 1, 2017 |

I How does one make an Amplitude vs. Frequency plot? | Nov 19, 2017 |

I How do I rearrange this equation and make x the subject | May 7, 2017 |

The angle that a vector makes when it is parallel to x-axis. | Jun 2, 2012 |

How to make a vector function from a f(x) function | May 24, 2011 |

**Physics Forums - The Fusion of Science and Community**