| Tired of seeing ads? Click here to upgrade to Elite Membership! |
Mathematics Forum
|
| Author | Message / Information |
| Simon64 Quote | Reply | | Pie related problem posted on: 6/7/2006 7:47:19 AM Hi, I'm currently in the process of coding a PHP script to generate a pie-chart, but I'm having trouble calculating coordinates to place the labels that correspond to each arc of the pie. Anyway, I was wondering if anyone here could please help me to solve the following problem, (which I'll attempt to explain as best I can, but it may be a bit icky without a diagram...): There's a triangle with points A, B, & C. The coordinates of A are 0,0. The coordinates of B are, say, 150,0. The coordinates of C are unknown. It's an isosceles triangle, and the distances between (A and B) and (A and C) are both 150. The angle at A is, say, 40 degrees. What are the coordinates of C, and what is the formula to work this out? I've got no idea how to solve this... any help is greatly appreciated! |
|
Simon64
Quote | Reply | |
Pie related problem
replied on: 6/7/2006 8:17:37 AM Actually, scratch that, I worked it out myself. It's like, (114.9,96.4)... I think. http://en.wikipedia.org/wiki/Trigonometry They should teach this stuff in schools! |
|
davo
Quote | Reply | This message was updated on 6/19/2007 7:00:08 AM by davo |
Pie related problem
replied on: 6/19/2007 6:58:19 AM Let (x,y) be the coordinate of C. Then tan40degree=Y/x---------(1) (x-150)sq+ y sq=(length of BC)sq------2 and you can solve the two equations Simultaneously. the length of BC can be found by law of cosines. |
|
LinkBot
|
Gamers Wanted is looking for people to write game reviews and post news, |
|
|
| Tired of seeing ads? Click here to upgrade to Elite Membership! |
ChatArea.com Help & News Forums | Terms of Use | Contact ChatArea.com | Advertising
Powered By ChatArea.com - Get your free Society today! © Copyright 2003 Wewp!