Solved

manually compute opposite and adjacent lengths when hypotenuse and angles are known in right triangle

Posted on 2009-05-06
9
448 Views
Last Modified: 2012-05-06
Need to manually compute the opposite and adjacent lengths in a right triangle when all else is known.

IF using sine then must compute sine mathematically (calculator with no sin/cos functions allowed); also can't use pi.



0
Comment
Question by:Baltar
[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
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 24318248
sin is x - x^3/3! + x^5/5! - ...
cos is 1 - x^2/2! + x^4/4! - ...
0
 

Author Comment

by:Baltar
ID: 24318940
Using these formulas how far out do you have to go before you begin to approach the known values.

If x is in degrees I was way off initially and the trend towards the known value was going to be a very long time.

0
 
LVL 27

Expert Comment

by:aburr
ID: 24319643
x is in radians not degrees.
how far to go depends on how close you want to "approach":
I find it hard to believe that a question like that in general would be given in a test.
Can you give an example question complete with values?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 24319747
you could also start with sin and cos of a right angle, and use

sin(x/2) = sqrt((1-cos(x))/2)
cos(x/2) = sqrt(1+cos(x))/2)
sin(a+b) = sin(a)cos(b)+cos(a)sin(b)
cos(a+b) = cos(a)cos(b)-sin(a)sin(b)
until you get sufficiently close
0
 

Author Comment

by:Baltar
ID: 24319777
radians violates my no pi issue

this is not for a test, more of a personal growth project and an excuse to use a very powerfull computer to figure something out to thousands of decimal places

pi in most forms is actually not accurate enough so I need the formulas behind my right triangle question that do not use pi directly or indirectly (radians)

thanks
0
 
LVL 27

Expert Comment

by:aburr
ID: 24320081
Try ozo's suggestions
radians do not have to contain pi directly or indirectly.
(pi is known to many thousand of decimal places which ought to be close enough for most purposes.)
0
 
LVL 32

Expert Comment

by:awking00
ID: 24327362
>>when all else is known<<
Out of curiosity, what exactly is "all else"?
0
 
LVL 20

Expert Comment

by:thehagman
ID: 24328088
With standard labels, you seem to know alpha and c, hence beta = 90°-alpha and want to knw a, and b.
Whatever you do to compute a andb, you can compute sin(alpha) at just very little extra cost (namely by sin(alpha)=a/c)
Hence it is "impossible" to not use a calculation of sin(alpha).
The addition and half-angle formulas as given by ozo allow you to obtain all angles of the form n*15/2^k degrees with +,-,*,/ and square roots, but the other mothods described are probably much faster for the same high precision.
0
 
LVL 84

Expert Comment

by:ozo
ID: 24333931
some sine and cosine of some angles, like pi/2 or pi/3 or pi/5 are easier to compute than others,
but any method that can compute it for arbitrary angles can be converted into a method for computing pi, so you can't really avoid using it in some manner
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Odd Behavior 5 78
Volume Calculation 14 82
Math home work questions 5 114
Two Dice Roll Probabilities 3 85
Have you ever thought of installing a power system that generates solar electricity to power your house? Some may say yes, while others may tell me no. But have you noticed that people around you are now considering installing such systems in their …
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

751 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