Posted By

Scooter on 06/07/08


Tagged

math


Versions (?)

Pythagorean Theorem


 / Published in: ASP
 

URL: http://reusablecode.blogspot.com/2008/06/pythagorean-theorem.html

ASP implementation of the hypot() function from PHP.

  1. <%
  2. ' ASP Mathematics Function - Hypot
  3. '
  4. ' Copyright (c) 2008, reusablecode.blogspot.com; some rights reserved.
  5. '
  6. ' This work is licensed under the Creative Commons Attribution License. To view
  7. ' a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or
  8. ' send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California
  9. ' 94305, USA.
  10.  
  11. ' Calculate the length of the hypotenuse of a right-angle triangle using the Pythagorean Theorem.
  12. function hypot(a, b)
  13. hypot = sqr(a^2 + b^2)
  14. end function
  15. %>

Report this snippet  

You need to login to post a comment.