/**
 * Calculate the theorem of Pythagoras.
 *
 * @param {number} a Length of one side of the triangle
 * @param {number} b Length of one side of the triangle
 * @return {number} Hypotenuse
 *
 * @example
 * var snu = require('s-node-utils');
 *
 * snu.math.theorems.hypotenuse(3, 4);
 * //=> 5
 */
module.exports = function(a, b) {
  var formula = Math.sqrt(a * a + b * b);
  return formula;
};
