Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > High School Math Help > Geometry
Reply
 
Thread Tools Display Modes
  #1  
Old 08-30-2008, 08:25 AM
Newbie
 
Join Date: Aug 2008
Posts: 2
Country:
Thanks: 1
Thanked 0 Times in 0 Posts
Geo877 is on a distinguished road
Default Right angle triangle math

Hi, I'm writing a physics engine in flash, i'm attempting to avoid trigonometry as much as possible to avoid rounding issues. I've reached a point where i basically need to draw right triangles where the ratio between the two shorter sides are constant and the hypotenuse can change. So in other words i need to be able to work out the lengths of 'a' and 'b' (in the basic a^2+b^2=c^2) if i know 'c' and a/b.

In my futile attemps i've come up with this a*a = c*c/(1+1/r*r) (r being a/b), now that will only work if a is equal to b which is a little useless.

if b = a/r then you could write it as a^2+(a/r)^2 = c^2, now what i need to do to get this to work is get 'r' over to the other side of the equation so we have just 'a' left on one side and 'c' and 'r' on the other. It has to be in this format because 'c' and 'r' are known and 'a' isn't.

Im not sure if this should be in the algebra forum or here but i was hoping someone might know a solution

thanks for you help !
Reply With Quote
Advertisement
 
  #2  
Old 08-30-2008, 01:05 PM
Super Member


 
Join Date: May 2006
Location: Lexington, MA (USA)
Posts: 5,638
Thanks: 274
Thanked 2,904 Times in 2,342 Posts
Soroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond repute
Default

Hello, Geo877!

Quote:
Hi, I'm writing a physics engine in flash, i'm attempting to avoid trigonometry
as much as possible to avoid rounding issues. .
. . . But there will be rounding!
I've reached a point where i basically need to draw right triangles where the ratio
between the two shorter sides is a constant and the hypotenuse c can change.

I need to be able to work out a and b if i know c and \frac{a}{b}
Let the ratio be r.

So we have: .\frac{a}{b} \:=\:r \quad\Rightarrow\quad a \:=\:br


Substitute into a^2+b^2\:=\:c^2

. . (br)^2 + b^2 \:=\:c^2 \quad\Rightarrow\quad b^2r^2+ b^2 \:=\:c^2 \quad\Rightarrow\quad b^2(r^2+1) \:=\:c^2 \quad\Rightarrow\quad b^2 \:=\:\frac{c^2}{r^2+1}

Then: .\boxed{b \;=\;\frac{c}{\sqrt{r^2+1}} }

And: .a \:=\:br \:=\:\frac{c}{\sqrt{r^2+1}}\cdot r \quad\Rightarrow\quad \boxed{a \:=\:\frac{cr}{\sqrt{r^2+1}}}

Reply With Quote
The Following 3 Users Say Thank You to Soroban For This Useful Post:
Donate to MHF
  #3  
Old 09-02-2008, 05:19 PM
Newbie
 
Join Date: Aug 2008
Posts: 2
Country:
Thanks: 1
Thanked 0 Times in 0 Posts
Geo877 is on a distinguished road
Default thank you so much that was exactly what I was looking for

the title says it all
Reply With Quote
Reply

Tags
right angle triangle

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 10:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2008 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.