Re: [R] vector normal to a plane

About this list Date view Thread view Subject view Author view Attachment view

From: Wolski (wolski@molgen.mpg.de)
Date: Sat 29 May 2004 - 05:33:06 EST


Message-id: <200405282133060585.0804D73B@mail.math.fu-berlin.de>

Hi!
In which library is this function?
I cant find it using help.search() on my R installation.
Eryk

*********** REPLY SEPARATOR ***********

On 5/28/2004 at 12:22 PM wwsprague@ucdavis.edu wrote:

>Hi All,
>
>(I have a degree in math, but I am too embarassed to ask my colleagues,
>so here goes:)
>
>I would like to get a vector normal (orthogonal) to a plane formed by
>two other vectors. In matlab I do this:
>
>v1 = [.4, .6, .8]; v2 = [.9, .7, .2]; nn = cross(v1,v2) (gives ~[-.48,
>.65, -.24]
>
>if I do R> cross(v1, v2), I get .94. Huh?
>
>Thanks for all your help, again.
>
>W
>
>______________________________________________
>R-help@stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic
Ihnestrasse 63-73 14195 Berlin 'v'
tel: 0049-30-83875219 / \
mail: wolski@molgen.mpg.de ---W-W---- http://www.molgen.mpg.de/~wolski

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:13 EST