confirmation that formula is recognized in irb

can run the formula in the cmd prompt, so need to determine how
variables are (not) being recognized or why ruby won't run the actual
method