Published in: ASP
URL: http://reusablecode.blogspot.com/2008/06/pythagorean-theorem.html
ASP implementation of the hypot() function from PHP.
<% ' ASP Mathematics Function - Hypot ' ' Copyright (c) 2008, reusablecode.blogspot.com; some rights reserved. ' ' This work is licensed under the Creative Commons Attribution License. To view ' a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or ' send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California ' 94305, USA. ' Calculate the length of the hypotenuse of a right-angle triangle using the Pythagorean Theorem. function hypot(a, b) hypot = sqr(a^2 + b^2) end function %>
You need to login to post a comment.
