![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Sexy Programmer
|
Finding All Sides and Angles of a Triangle
In my Trig class, we are going over Laws of Sin and Heron's Formula. I am making a program where a user can enters the angles and the side of a oblique triangle and whatever is left blank the program will calculate the rest sides and angles that the user did not enter.
My program can also calculate the area if all the sides of the triangle are given. Knowing the math and formulas is not a problem for me, The problem is just figuring out which sides and/or angles to calculate. Instead of having a thousand if statements! Here is my source for far. I attached a .zip file containing my source. Help will be greatly appreciated!
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#2 |
|
Professional Programmer
|
You might also want to check out the law of cosines.
http://en.wikipedia.org/wiki/Law_of_cosines
__________________
JG-Webdesign |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Oct 2006
Posts: 146
Rep Power: 2
![]() |
i agree. law of cosines can solve some problems that take more steps with the other two formulas
|
|
|
|
|
|
#4 | |
|
Expert Programmer
|
Quote:
![]()
__________________
|
|
|
|
|
|
|
#5 | |
|
Hobbyist Programmer
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2
![]() |
Quote:
![]()
__________________
You never test the depth of a river with both feet. The believer is happy. The doubter is wise. Free speech carries with it some freedom to listen. The next generation will always surpass the previous one. It`s one of the never ending cycles of life. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|