free triangle
Interface
Free Triangle
| doublefree_triangle( | double | a | |
| double | b | ||
| double | c | ||
| double | h | ||
| double | alpha | )[inline] |
Solution
LetMISSING IMAGE!
1/free_triangle01-746.jpg cannot be found in /users/1/free_triangle01-746.jpg. Please contact the submission author.
Purchase a Licence for more information.
Let S be the area which we must determine. Based on the values ofMISSING IMAGE!
1/free_triangle_2-746.jpg cannot be found in /users/1/free_triangle_2-746.jpg. Please contact the submission author.
Purchase a Licence for more information.
2)MISSING IMAGE!
1/free_triangle_3-746.jpg cannot be found in /users/1/free_triangle_3-746.jpg. Please contact the submission author.
Purchase a Licence for more information.
3)MISSING IMAGE!
1/free_triangle_4-746.jpg cannot be found in /users/1/free_triangle_4-746.jpg. Please contact the submission author.
Purchase a Licence for more information.
4)MISSING IMAGE!
1/free_triangle_5-746.jpg cannot be found in /users/1/free_triangle_5-746.jpg. Please contact the submission author.
Purchase a Licence for more information.
Output:a = 2.613 b = 1.878 c = 1.209 alpha = 0.61086 h = 0.0 Area = 0.00 h = 0.3 Area = 0.14 h = 0.6 Area = 0.56 h = 0.9 Area = 0.97 h = 1.2 Area = 1.04 h = 1.5 Area = 1.04
Example 1
#include <codecogs/maths/geometry/area/free_triangle.h> #include <stdio.h> int main() { // the lengths of the sides double a = 2.613, b = 1.878, c = 1.209; // the value of the alpha angle in radians double alpha = 0.61086; // display the lenghts of the sides and the alpha angle printf("a = %.3lf\nb = %.3lf\nc = %.3lf\nalpha = %.5lf \n\n", a, b, c, alpha); // display the area for different values of h for (double h = 0.0; h < 1.6; h += 0.3) printf("h = %.1lf Area = %.2lf\n", h, Geometry::Area::free_triangle(a, b, c, h, alpha)); return 0; }
Note
- The vertices must be denoted such that the abscissa of
is less than that of
, i.e. as in the given examples.
Parameters
a first side of the triangle (BC) b second side of the triangle (AC) c third side of the triangle (AB) h the distance between line and
alpha the input angle in radians
Returns
- The value of the desired area.
Authors
- Eduard Bentea (September 2006)
Source Code
This module is private, for owner's use only.
Not a member, then Register with CodeCogs. Already a Member, then Login.

