Skip to content
loading...

# Calculate the length of the opposite of a right triangle

### Adam Crockett github logo Apr 26・1 min read

Hiya, I am trying to solve something but it's driving me mad, please save me, no this is not math homework I am 30 years old.

I have this triangle here:

Hypot = 60
Adjacent = 30
Opposite ??

lets give them nice names
Hypot = C
Adjacent = A
Opposite = B

I do not know the angles apart from that this is a right angle triangle.

What are the steps to solve this?

I am JavaScript centric so code in this language or explanations in code would be super! (math is not my strongest suit sometimes)

DISCUSS (4)
Discussion

I think it's?
B = √(c² - a²)

yep that's correct -
this gives us `b = sqrt(3) * 30` upon further simplification which is approximately equal to - 51.962

Pythagore : c*c = a*a + b*b

Classic DEV Post from Jun 1 '18

## Play With the React 🐘Router

I work at ForgeRock as a Front End Engineer, I play with all sorts really. Lately WASM is my toy of interest.