or you can use this function to find the hypotenuse of a triangle
you need to know 2 sides and for the side that you dont know just put a question mark like this "?" with parenthesis
Func hypotenuse($sidea,$sideb,$sidec)
Select
case $sideA = "?"
$b2 = $sideB * $sideb
$c2 = $sidec * $sidec
$answer = $c2 - $b2
$answer1 = Sqrt($answer)
Return $answer1
case $sideb = "?"
$a2 = $sidea * $sidea
$c2 = $sidec * $sidec
$answer = $c2 - $a2
$answer1 = Sqrt($answer)
Return $answer1
case $sidec = "?"
$b2 = $sideB * $sideb
$a2 = $sidea * $sidea
$answer1 = $a2 + $b2
$answer2 = Sqrt($answer1)
Return $answer2
EndSelect
EndFunc
example : msgbox("The hypotenuse of a triangle with sides of 3 and 5","The hypotenuse is: " & hypotenuse(3,4,"?")
will return 5