Package pygeodesy :: Module interns |
[frames] | no frames]

# Module interns

Single-instance `float`s and `str`ings, `intern`'ed across modules. Function pygeodesy.machine.

Version: 21.11.21

Functions
machine() Return standard `platform.machine`, but distinguishing Intel from Intel emulation on Apple Silicon (on macOS only). |

Variables
| PI = `3.14159265359`
| NN = `''`
| DIG = `15`
| EPS = `2.22044604925e-16`
| MANT_DIG = `53`
| MAX = `1.79769313486e+308`
| MIN = `2.22507385851e-308`
| EPS0 = `4.93038065763e-32`
| EPS02 = `2.43086534291e-63`
| EPS2 = `4.4408920985e-16`
| EPS4 = `8.881784197e-16`
| EPS_2 = `1.11022302463e-16`
| EPS1 = `1.0`
| EPS1_2 = `1.0`
| INF = `inf`
| NAN = `nan`
| NEG0 = `-0.0`
| PI2 = `6.28318530718`
| PI3 = `9.42477796077`
| PI3_2 = `4.71238898038`
| PI4 = `12.5663706144`
| PI_2 = `1.57079632679`
| PI_4 = `0.785398163397`
| MANTIS = `53`

Function Details

### machine() |
Return standard `platform.machine`, but distinguishing Intel from Intel emulation on Apple Silicon (on macOS only). Returns: Machine `'arm64'` for Apple Silicon natively, `'x86_64'` for Intel, Intel `"arm64_x86_64"` for Intel emulation, etc. (`str` with `comma`s replaced with `underscore`s).