{ Rouge }

An elegant, extendable code highlighter written in pure Ruby.

Available on Github

dbenford <- function(x){
    log10(1 + 1/x)
}

pbenford <- function(q){
    cumprobs <- cumsum(dbenford(1:9))
    return(cumprobs[q])
}