Need Desperate Help With A Math Problem!

StormLiongStormLiong Join Date: 2002-12-27 Member: 11569Members
edited October 2003 in Off-Topic
<div class="IPBDescription">its for a programming problem of mine...</div> My math has gone really rusty. Anyways, there is this programming problem that Im currently working on, I know exactly how to go about it that will definitely work, only thing Ive forgetten and cant find the maths principle of it.
Basically if I was to put my problem in a math question:

If your center was A(30, 30), how do u know the coordinate of a point thts 10 units from A, and at an angle of 45 centering at A. (The angle has GOT to be used)


I hope someone can help. Thanks alot. (uh ignore the diagram, didnt turn out teh way i wanted it to be)

Comments

  • EmseeEmsee Join Date: 2003-05-23 Member: 16644Members, Constellation
    Pythagorean theorem

    Should be all the help you need. If that doesn't ring any bells, look it up in google.
    I'm not doing the question for you though, but it's pretty simple.
  • BogglesteinskyBogglesteinsky Join Date: 2002-12-24 Member: 11488Members
    A^2 + B^2 = C^2

    A^2 + B^2 = 10^2
  • StormLiongStormLiong Join Date: 2002-12-27 Member: 11569Members
    Oops my bad. I know you can use Pythgeros theorem but I have to use the angle. Using the Pythegors theorem will not solve the calculation that i need to do in the program.
  • BogglesteinskyBogglesteinsky Join Date: 2002-12-24 Member: 11488Members
    if you think about it, the triangle formed will be an icoceles triangle (ie, A and B are the same)

    A^2 + A^2 = 10^2

    You now only have 1 unknown, so you can work it out
  • EmseeEmsee Join Date: 2003-05-23 Member: 16644Members, Constellation
    Or if you want to do it another way.

    Sine= Opposite/Hypotenuse
    or
    Cosine= Adjacent/Hypotenuse

    Just rearrange them to what you need.
  • RPG_JssmfulhudRPG_Jssmfulhud Join Date: 2002-11-02 Member: 4006Members
    edited October 2003
    Use:

    Sin 45 degrees
    and
    Cos 45 degrees

    Then you just add to the A coordinates to get the x and y from B.

    PS: I hope the graph will stay the same.

    EDIT: It didn't, have to attach.
  • RPG_JssmfulhudRPG_Jssmfulhud Join Date: 2002-11-02 Member: 4006Members
    edited October 2003
    Sorry for double post, but can't attach with edit.
  • StormLiongStormLiong Join Date: 2002-12-27 Member: 11569Members
    Ah! thank you! i think thts solved it! thanks again.

    Mental Note: dun ever throw away my maths notes again ;p
  • RPG_JssmfulhudRPG_Jssmfulhud Join Date: 2002-11-02 Member: 4006Members
    No problem, glad to help. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • Nil_IQNil_IQ Join Date: 2003-04-15 Member: 15520Members
    Wow. This was so easy even I could do it. I feel better about myself <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • MulletMullet Join Date: 2003-04-28 Member: 15910Members, Constellation
    I wish I could teach myself math...I dont understand my teacher. If I could teach myself online or somthing, that would be sooooo much easier...If anyone knows any good math sites, lemme know!
  • TransmissionTransmission Join Date: 2003-03-12 Member: 14456Members
    <!--QuoteBegin--Mullet+Oct 8 2003, 06:29 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Mullet @ Oct 8 2003, 06:29 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I wish I could teach myself math...I dont understand my teacher. If I could teach myself online or somthing, that would be sooooo much easier...If anyone knows any good math sites, lemme know! <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Not to be offensive, but have you tried your textbook. People often overlook it, but technically you should be able to learn the course from that book.
  • SoulSkorpionSoulSkorpion Join Date: 2002-04-12 Member: 423Members
    In general: SOHCAHTOA.

    <b>S</b>ine of the angle = <b>O</b>pposite side over the <b>H</b>ypotenuse.
    <b>C</b>osine of the angle = <b>A</b>djacent side over the <b>H</b>ypotenuse.
    <b>T</b>angent of the angle = <b>O</b>pposite side over the <b>A</b>djacent side.

    It's not Pythagoras, but it <i>is</i> trigonometry. By the way, the hypotenuse is the long side, the adjacent side is the one other than the hypotenuse that makes up your angle and the opposite side is the side opposite your angle (duh).
Sign In or Register to comment.