Author Topic: finding legs given hypotenuse and angles of triangle  (Read 1283 times)

title is basically given. i have a random right triangle which i know the hypotenuse and all the inside angles of. i need to find the legs


thank you so much, locking thread

sohcahtoa? i vaguely remember doing this in pre-calc but i dont think this is correct

forget about the triangle's legs
my legs are in the air bb <3

sohcahtoa? i vaguely remember doing this in pre-calc but i dont think this is correct
https://www.youtube.com/watch?v=Uxo_JCp44A8 - SOH CAH TOA - finding side lengths

use Pythagorean theorem to solve for a/b

use sohcahtoa and trig. ratios and then pythagorean theorem

if you wanna be lazy theres a few online calculators

use Pythagorean theorem to solve for a/b
use sohcahtoa and trig. ratios and then pythagorean theorem

if you wanna be lazy theres a few online calculators
i need steps

i cant use a calculator im coding something

basic trig

given triangle with sides A B C and angles a b c (angle name being the angle directly opposite of the side), and C being the hypotenuse (making c 90 deg)

sin(a) * C = A
cos(a) * C = B
tan(a) * B = A

basically if you have two sides and an angle of a right triangle, or one side and two angles, you can solve for the whole thing

make sure your angle is in radians cause thats how 99% of all languages handle trig
« Last Edit: April 14, 2018, 05:50:58 PM by Conan »

I wish I was high on potenuse

I wish I was high on potenuse
bro...... jordan said that.....


assuming you have your angles given in degrees and using dummy values

angle_a = 50;
angle_b = 40;
hypotenuse = 32;

angle_a_rad = angle_a*pi/180;
angle_b_rad = angle_b*pi/180;

A = hypotenuse*sin(angle_a_rad) %opposite angle a
B = hypotenuse*sin(angle_b_rad) %opposite angle b

theres your matlab code nerd

yo, if all you know are the angles then the triangle can be any size