Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Linear Algebra and the C Language/a0ah

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

__NOTOC__ Code study: proj_mR(); /* ------------------------------------ */ /* (<u,v>/||v||^2) * v */ /* ------------------------------------ */ double **proj_mR( double **u, double **v, double **projuv ) { /* <u,v> / ||v||^2 */ double s = dot_R(u,v) / dot_R(v,v); smul_mR(s,v,projuv); return(projuv); } /* ------------------------------------ */ /* ------------------------------------ */