Results 1 to 3 of 3

Math Help - Formular of right angle triangle?

  1. #1
    Member
    Joined
    Oct 2011
    Posts
    170
    Thanks
    3

    Formular of right angle triangle?

    What is the formular for a right angle triangle? I really struggle with formulars and I need to know the formular for a programming assignment I have been given.

    I need the user to input 2 values, the width and the length, but I somehow need to calculate and display the height of the triangle, and also the 3 interior angles in degrees.

    I have no problem with the coding I just dont know what the formular would be...

    would it be something like:

    height * width / 2......? Also I know I have to use the square root somewhere in the formular.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Master Of Puppets
    pickslides's Avatar
    Joined
    Sep 2008
    From
    Melbourne
    Posts
    5,236
    Thanks
    29

    Re: Formular of right angle triangle?

    I don't think a triangle has width, length and height. It has a height (a) base (b) and hypotenuse (c) the longest side.

    Therefore a^2+b^2=c^2

    For the angles you need to use sin, cos and tan, once you have labelled the sides opposite and adjacent the angles.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Member
    Joined
    Oct 2011
    Posts
    170
    Thanks
    3

    Re: Formular of right angle triangle?

    Im not allowed to measure anything, I should use python code to do this for me.

    Here is what it says its not really that clear if im honest.

    " write code to input two positive values of type float representing the width and the length of the diagonal of a right-angled triangle and calculate and display the height of the triangle, and also the three interior angles, expressed in degrees.
    Pythagoras's theorem states that height2 = diagonal2-width2, so you should use this to calculate the square of the height, and then obtain its square root by calling the function sqrt from the math module.
    You can obtain one of the interior angles by calling the function acos from the math module with an argument of width/diagonal; this will return the result in radians; to convert this to degrees the result must be passed as an argument to another function called degrees (also from the math module) which will return the required result. Since it is known that one of the angles is 90 degrees and the sum of the other two is 90 degrees we can now easily find all three angles."
    Last edited by uperkurk; November 5th 2011 at 03:47 PM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Calculating an angle of a none right angle triangle
    Posted in the Trigonometry Forum
    Replies: 14
    Last Post: August 19th 2011, 02:42 PM
  2. Replies: 1
    Last Post: April 4th 2011, 12:36 PM
  3. Angle in a triangle
    Posted in the Geometry Forum
    Replies: 2
    Last Post: June 4th 2010, 07:28 AM
  4. angle of the triangle
    Posted in the Geometry Forum
    Replies: 8
    Last Post: April 28th 2009, 11:31 PM
  5. Replies: 27
    Last Post: April 27th 2008, 11:36 AM

Search Tags


/mathhelpforum @mathhelpforum