Solved

A Triangle Math Formula

Posted on 1998-01-31
6
1,228 Views
Last Modified: 2006-11-17
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
Comment
Question by:schworak
  • 4
6 Comments
 
LVL 3

Author Comment

by:schworak
ID: 1454676
Edited text of question
0
 
LVL 3

Author Comment

by:schworak
ID: 1454677
Edited text of question
0
 
LVL 3

Author Comment

by:schworak
ID: 1454678
Edited text of question
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 5

Accepted Solution

by:
dirtdart earned 40 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

by:mrmick
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

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now