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

seq

seq method for three velocities


Description

Simplified version of seq() for three-velocities.

Usage

## S3 method for class '3vel'
seq(from, to, len, ...)

Arguments

from,to

Start and end of sequence

len

Length of vector returned

...

Further arguments (currently ignored)

Details

seq(a,b,n) returns a + t*(-b+a) where t is numeric vector seq(from=0,to=1,len=n).

This definition is one of several plausible alternatives, but has the nice property that the first and last elements are exactly equal to a and b respectively.

Author(s)

Robin K. S. Hankin

Examples

a <- as.3vel(c(4,5,6)/9)
b <- as.3vel(c(-5,6,8)/14)
x <- seq(a,b,len=9)

x[1]-a # should be zero
x[9]-b # should be zero


jj <- a + seq(0,1,len=9)*(b-a)

jj-x   # decidedly non-zero

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.