RobinHankin / lorentz
Showing 1 of 4 files from the diff.
Other files ignored by Codecov
NAMESPACE has changed.
man/sol.Rd has changed.

@@ -184,6 +184,47 @@
Loading
184 184
  d <- d/sol()
185 185
  return(1/sqrt(2*d-d^2))
186 186
}
187 +
188 +
`rapidity` <- function(u){ UseMethod("rapidity",u) }
189 +
190 +
`rapidity.default` <- function(u){  # 'u' is a speed
191 +
    sol()*atanh(u/sol())
192 +
}
193 +
194 +
`rapidity.3vel` <- function(u){
195 +
    rapidity(speed(u))
196 +
}
197 +
198 +
`rapidity.4vel` <- function(u){
199 +
    g <- u[,1] # gamma
200 +
    log(2*g*(g+sqrt(g^2-1))-1)/2
201 +
}
202 +
203 +
`rapidity_ur` <- function(d){# d=1-speed, d<<c
204 +
    d <- d/sol()
205 +
    sol()*log((2-d)/d)/2
206 +
}
207 +
208 +
`celerity` <- function(u){ UseMethod("celerity",u) }
209 +
210 +
`celerity.default` <- function(u){  # 'u' is a speed
211 +
    u*gam(u)
212 +
}
213 +
214 +
`celerity.3vel` <- function(u){
215 +
    celerity(speed(u))
216 +
}
217 +
218 +
`celerity.4vel` <- function(u){
219 +
    g <- u[,1] # gamma
220 +
    sqrt(g^2-1)
221 +
}
222 +
223 +
`celerity_ur` <- function(d){# d=1-speed, d<<c
224 +
    d <- d/sol()
225 +
    sol()*(1-d)/sqrt(d*(2-d))
226 +
}
227 +
187 228
`add3` <- function(u,v){  # eq 2
188 229
  jj <- massage3(u,v)
189 230
  u <- jj[[1]]
Files Coverage
R 95.71%
Project Totals (3 files) 95.71%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading