Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# A Triangle Math Formula

Posted on 1998-01-31
Medium Priority
1,251 Views
This has little to do with VB other than the program I am writing is written in VB. It is really about math but I didn't know where else to ask.

I have a triangle

a
|\
|_\c
b

I always know the length of the three sides.
Angle b is always 90 degrees.

What the heck is the formula to find the angle of a or c?

I know that the two angles add up to 90 degrees but can't remember my highschool math well enough to remember how to figure this out. Too many years without using it I guess.
0
Question by:schworak
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 4

LVL 3

Author Comment

ID: 1454676
Edited text of question
0

LVL 3

Author Comment

ID: 1454677
Edited text of question
0

LVL 3

Author Comment

ID: 1454678
Edited text of question
0

LVL 5

Accepted Solution

dirtdart earned 120 total points
ID: 1454679
In your drawing above, side I will refer to side ab and side ac, referring to the sides running between the angles.

angle a = Atn(cb/ab)
angle c = Atn(ab/cb)
0

LVL 8

Expert Comment

ID: 1454680
hmmm...

That returns radians dirtdart, schworak is working in degrees.

schworak, the formula for degrees is dirtdarts formula with an added conversion:

angle a = Atn(cb/ab)  * (180 / 3.14159265359)
angle c = Atn(ab/cb)  * (180 / 3.14159265359)

0

LVL 3

Author Comment

ID: 1454681
That works great. Thanks. RADIANS and DEGREES are easily converted between each other.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
###### Suggested Courses
Course of the Month5 days, 11 hours left to enroll