<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Adding Multiple Vectors</title>
	<link>http://ask.metafilter.com/15380/Adding-Multiple-Vectors/</link>
	<description>Comments on Ask MetaFilter post Adding Multiple Vectors</description>
	<pubDate>Sat, 19 Feb 2005 15:39:24 -0800</pubDate>
	<lastBuildDate>Sat, 19 Feb 2005 15:39:24 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Adding Multiple Vectors</title>
		<link>http://ask.metafilter.com/15380/Adding-Multiple-Vectors</link>	
		<description>Mathematical imbecile question: what&apos;s the simplest, most universal way to add a list of vectors?  &lt;br /&gt;&lt;br /&gt; I need a one-size-fits-all formula that I can pop into Excel (or, indeed, an add-in); all my Google searching seems to turn up is high-school methods involving drawing diagrams and measuring angles with a protractor, or a &quot;step-by-step&quot; approach that I can&apos;t get my head around moving into a spreadsheet.  I just want to be able to put a list of angles and magnitudes in a  couple of columns, and come out with the resultant vector at the end.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.15380</guid>
		<pubDate>Sat, 19 Feb 2005 15:31:41 -0800</pubDate>
		<dc:creator>Jimbob</dc:creator>
		
			<category>maths</category>
		
			<category>mathematics</category>
		
			<category>vectors</category>
		
			<category>spreadsheet</category>
		
			<category>excel</category>
		
	</item> <item>
		<title>By: AlexReynolds</title>
		<link>http://ask.metafilter.com/15380/Adding-Multiple-Vectors#263806</link>	
		<description>Highlight the column to the left of the other columns. Click once on the &quot;Sigma&quot; (&quot;sum&quot;) button in the toolbar. Excel is usually smart enough to figure out you want the highlighted column to contain sums of the row entries from the other columns.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15380-263806</guid>
		<pubDate>Sat, 19 Feb 2005 15:39:24 -0800</pubDate>
		<dc:creator>AlexReynolds</dc:creator>
	</item><item>
		<title>By: vacapinta</title>
		<link>http://ask.metafilter.com/15380/Adding-Multiple-Vectors#263807</link>	
		<description>In the future, go directly to Mathworld, not Google.&lt;br&gt;
&lt;br&gt;
1. &lt;a href=&quot;http://mathworld.wolfram.com/PolarCoordinates.html&quot;&gt;Add more columns to turn your polar coordinates into cartesian.&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
2. &lt;a href=&quot;http://mathworld.wolfram.com/VectorAddition.html&quot;&gt;Add them&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
3. Convert back if necessary</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15380-263807</guid>
		<pubDate>Sat, 19 Feb 2005 15:39:58 -0800</pubDate>
		<dc:creator>vacapinta</dc:creator>
	</item><item>
		<title>By: Gyan</title>
		<link>http://ask.metafilter.com/15380/Adding-Multiple-Vectors#263808</link>	
		<description>Pseudocode:&lt;br&gt;
&lt;br&gt;
Result = (Summation of magnitude*(cosine of angle))&lt;b&gt;i&lt;/b&gt;  + (Summation of magnitude*(sine of angle))&lt;b&gt;j&lt;/b&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15380-263808</guid>
		<pubDate>Sat, 19 Feb 2005 15:40:14 -0800</pubDate>
		<dc:creator>Gyan</dc:creator>
	</item><item>
		<title>By: Jimbob</title>
		<link>http://ask.metafilter.com/15380/Adding-Multiple-Vectors#263821</link>	
		<description>Beautiful, that works like a charm vacapinta, and was pretty obvious. I think the main thing that was confusing me was the need to convert between degrees and radians at various points.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15380-263821</guid>
		<pubDate>Sat, 19 Feb 2005 16:08:55 -0800</pubDate>
		<dc:creator>Jimbob</dc:creator>
	</item><item>
		<title>By: Jimbob</title>
		<link>http://ask.metafilter.com/15380/Adding-Multiple-Vectors#263825</link>	
		<description>Actually, just to sum up exactly what I&apos;ve done in Excel for anyone else wanting this in the future:&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Column A&lt;/b&gt;: Magnitude&lt;br&gt;
&lt;b&gt;Column B&lt;/b&gt;: Direction, in degrees, clockwise from &quot;North&quot;&lt;br&gt;
&lt;b&gt;Column C&lt;/b&gt;:  =90-B &lt;br&gt;
&lt;b&gt;Column D&lt;/b&gt;:  =RADIANS(IF(C&amp;lt;0,C+360, C))&lt;br&gt;
&lt;br&gt;
&lt;i&gt;Columns C and D convert the angle into radians anti-clockwise from the X-axis.&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Column E&lt;/b&gt;:  =A*COS(D)&lt;br&gt;
&lt;b&gt;Column F&lt;/b&gt;:  =A*SIN(D)&lt;br&gt;
&lt;br&gt;
I then calculate the sum of all the rows of column E (call that &lt;b&gt;X&lt;/b&gt;) and the sum of all rows of column F (call that &lt;b&gt;Y&lt;/b&gt;)&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Angle&lt;/b&gt; =DEGREES(ATAN(&lt;b&gt;Y&lt;/b&gt;/&lt;b&gt;X&lt;/b&gt;))&lt;br&gt;
&lt;b&gt;Magnitude&lt;/b&gt; =SQRT(&lt;b&gt;X&lt;/b&gt;^2+&lt;b&gt;Y&lt;/b&gt;^2)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15380-263825</guid>
		<pubDate>Sat, 19 Feb 2005 16:17:06 -0800</pubDate>
		<dc:creator>Jimbob</dc:creator>
	</item><item>
		<title>By: Jimbob</title>
		<link>http://ask.metafilter.com/15380/Adding-Multiple-Vectors#263829</link>	
		<description>No, I lie, calculating that last angle gives the wrong answer. I&apos;ll try to work it out.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15380-263829</guid>
		<pubDate>Sat, 19 Feb 2005 16:27:37 -0800</pubDate>
		<dc:creator>Jimbob</dc:creator>
	</item><item>
		<title>By: Jimbob</title>
		<link>http://ask.metafilter.com/15380/Adding-Multiple-Vectors#263833</link>	
		<description>Oh okay, that last angle has to be subtracted from 90 to get it back into &quot;compass&quot; angles, and you add 180 to it if the X-coordinate is negative. Done. Cheers!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.15380-263833</guid>
		<pubDate>Sat, 19 Feb 2005 16:38:51 -0800</pubDate>
		<dc:creator>Jimbob</dc:creator>
	</item>
	</channel>
</rss>
