Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cosines

Direction cosines


Description

Given a vector of three-velocities, returns their direction cosines

Usage

cosines(u, drop = TRUE)

Arguments

u

A vector of three-velocities

drop

Boolean, with default TRUE meaning to coerce return value from a one-row matrix to a vector, and FALSE meaning to consistently return a matrix

Author(s)

Robin K. S. Hankin

Examples

cosines(r3vel(7))


cosines(r3vel(1),drop=TRUE)
cosines(r3vel(1),drop=FALSE)

lorentz

The Lorentz Transform in Relativistic Physics

v1.0-5
GPL-3
Authors
Robin K. S. Hankin [aut, cre] (<https://orcid.org/0000-0001-5982-0415>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.