Skip to content

Instantly share code, notes, and snippets.

@kungfuant
Created February 12, 2015 05:29
Show Gist options
  • Save kungfuant/e66bb88418f20a02fe2f to your computer and use it in GitHub Desktop.
Save kungfuant/e66bb88418f20a02fe2f to your computer and use it in GitHub Desktop.
MoneyPot house edge
#!/usr/local/bin/gnuplot
reset
# set terminal png size 1280,600
# set output "moneypot-houseedge.png"
set terminal svg enhanced size 1920 1080
set output "moneypot-houseedge.svg"
set ylabel "house edge %"
set xlabel "cashout multiplier"
set xrange [1:20]
set yrange [0:1]
set xtics 2
set ytics 0.1
set grid xtics ytics
set style line 1 lc rgb 'red' lt 1 lw 3
houseedge(x) = 100 * (1.0/101 - 99.0/101/(100*x - 1))
plot houseedge(x) title '' with lines linestyle 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment