MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / factor

Method factor

libraries/relativity/relativity.h:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38 double factor(double speed)
39 {
40 double alpha = speed * _divc;
41 return sqrt(1 - alpha * alpha);
42 }
43
44 double gamma(double speed)
45 {

Callers 1

unittestFunction · 0.80

Calls 1

sqrtFunction · 0.85

Tested by 1

unittestFunction · 0.64