In geometry, an isosceles triangle is a triangle that has two sides of equal length. Sometimes it is specified as having exactly two sides of equal length, and sometimes as having at least two sides of equal length, the latter version thus including the equilateral triangle as a special case.
You are given an isosceles triangle of where and . As you are good in mathematics you have to calculate the area of where you will be given the angle of and the value of and respectively.
The Input starts with an integer (), denoting the number of test cases.
Each case contains three floating point numbers the value of (in radian, ), () and ().
For each case, print the case number and the area of rounded to eight places after the decimal point.
Input | Output |
---|---|
4 0.2 2 5 1 2 3 3 10 170 0.000000000000001111111 0.02222258 11111.111111111115 | Case 1: 2.08336663 Case 2: 1.78661943 Case 3: 1889.18411647 Case 4: 0.00000007 |
The area of an isosceles triangle is