Tuesday, July 10, 2018

11.71875

A

## Ryan Matthew Ferris 10:26 PM Thursday, November 19, 2015, 2015 Bellingham, WA

## Updated 7/10/2018

## *Notes on 187.5/16 or 11.71875*

##

# In this code, I introduce 'xi'  (11.71875) a constant with strong relationships to both pi and # exp(1).

# 'Xi' (11.71875 or (187.5/16)) is a 'translator constant' between powers of 2 and 16.

# Search google for "11.71875mhz" and you can see this. 11.71875mhz is a widely used frequency in 'crystal resonators'.

# More than simply being an efficient means to compute pi or exp(1) (e.g. 'Eulers number'), 'xi' may

# 'interpolate' between pi and e, giving science the means to measure logarithmic growth patterns of

# increasing radii. This may make it useful for gravitational and rotational calculations. It is

# possible that the 187.5 cm-3 pc represents some fixed attenuation limit  (see

# http://arxiv.org/abs/1503.05245) for radio waves signal that require either boosting or

# chirping.  The relationships between pi, e, and xi(187.5./16 = 11.71875) may represent fixed

# constants descriptive of all  EM signaling. In addition, the constants that describe the

# circumscription of an octahedron (sqrt(1/2) and sqrt(1/6) can also be used to derive xi with a

# factor close to 9/16.

 

## A number of constants and function names are used. Some are reused:

# [1] "almost2" "aR"      "c2"      "cR"      "eR"      "F_pe"    "F_pi"    "findpi"  "i"       "j"       "k"       "k1"    

# [13] "k2"      "l"       "l1"      "mm1"     "p1"      "p2"      "piR"     "pR"      "pX"      "s4"      "seqe"    "seqpi" 

# [25] "seqpi_e" "t1"      "t2"      "t3"      "Vx"      "x"       "xi"      "xi_sqrt" "xif"     "y"     

## Set your graphics device to record history if desired. 86 graphs are produced.

## You may want par(mfrow=c(1,2))

## NB : In R 3.5 there is no bigint by default,however there are 22 digits of accuracy.

## See my usage of BIGINT in Powershell

## For this work I used Microsoft Open R 3.5 with Intel's MKL (Math Kernel Library)

Monday, June 18, 2018

Calling Powershell Memory Management Metrics inside R

There are a lot of memory management and memory management metrics in Windows 10 e.g (Resource monitor, performance monitor, kernel logging in event viewer) .  However, you can call Powershell memory management functions and metrics from inside R. This allows you to measure how Windows sees your libraries, functions, etc. from inside your R scripts. Windows 10 memory management uses "memory compression". "Memory Compression" is a 'hidden process' in PS. You can mix R's memory commands (e.g. memory.size,memory.limt,gc) and call cmd shell (eg. 'shell('systeminfo | findstr "Memory"')' ). [This post needs viewing on a wide screen.]

Saturday, February 4, 2017

Decimal, Binary, Octal, Hexadecimal table

library(data.table)
library(R.utils)
print(setnames(data.table(cbind(2^0:128,intToBin(2^0:128),intToOct(2^0:128),intToHex(2^0:128))),c("Decimal","Binary","Oct","Hex"))[1:100])
     Decimal   Binary Oct Hex
  1:       1 00000001 001  01
  2:       2 00000010 002  02
  3:       3 00000011 003  03
  4:       4 00000100 004  04
  5:       5 00000101 005  05
  6:       6 00000110 006  06
  7:       7 00000111 007  07
  8:       8 00001000 010  08
  9:       9 00001001 011  09
 10:      10 00001010 012  0a
....
 t1 <- setnames(data.table(cbind(2^0:128,intToBin(2^0:128),intToOct(2^0:128),intToHex(2^0:128))),c("Decimal","Binary","Oct","Hex")) t1
     Decimal   Binary Oct Hex
  1:       1 00000001 001  01
  2:       2 00000010 002  02
  3:       3 00000011 003  03
  4:       4 00000100 004  04
  5:       5 00000101 005  05
 ---                         
124:     124 01111100 174  7c
125:     125 01111101 175  7d
126:     126 01111110 176  7e
127:     127 01111111 177  7f
128:     128 10000000 200  80
sapply(t1,class)
    Decimal      Binary         Oct         Hex 
"character" "character" "character" "character" 

Monday, May 16, 2016

Tale of Threes...

Groups of Voter per 42nd LD Precinct sorted into groups of threes: 3 Votes for last GEs (2013,2014,2015), Active but no votes for the last 3 GEs, NA for the last three GEs. Click to enlarge. Based on 4/15/2016 WC voterdb.

This code experiments with using data.table to group and select data. Political piece is here.

Tuesday, March 22, 2016

Checking Caucuses

Some tricky, dense political code that reveals information about Precinct Sites based on Voting History.  Ask if you need the spreadsheet. Political post here. Click to enlarge.



Code after the break.