R - Compute Cross Product of Vectors (Physics)
<p>What am I doing wrong?</p>

<pre><code>&gt; crossprod(1:3,4:6)
     [,1]
[1,]   32
</code></pre>

<p>According to this website:<a href="http://onlinemschool.com/math/assistance/vector/multiply1/" rel="nofollow noreferrer">http://onlinemschool.com/math/assistance/vector/multiply1/</a></p>

<p>It should give:</p>

<pre><code>{-3; 6; -3}
</code></pre>

<p>See also <a href="https://stackoverflow.com/questions/15162741/what-is-rs-crossproduct-function">What is R&#39;s crossproduct function?</a></p>