Revision history  [back]

I think the issue may be that the Math module needs to be capitalized, try

Math.sqrt(4)

http://ruby-doc.org/core-2.0.0/Math.html#method-c-sqrt