I am not sure if this will help but you can use Pythagorean Theorem which is a squared + b squared = c squared.
A^2 and b^2 would be the legs of the triangle and c^2 would be the hypotenuse.
You need two numbers for this though. I’m sorry if this doesn’t help.