triangle(1f) - resolution of a triangle (LICENSE:PD)
Synopsis
Description
Author
Options
Example
triangle -a NN -b NN -c NN -ta NN -tb NN -tc NN -radians -degrees
Given three side or angle elements of a triangle out of six, this program will determine the missing elements and calculate the surface. The not-given elements must be put to zero.
Based on an example F90 version by J-P Moreau (www.jpmoreau.fr).and A. Reverchon (vol 2), Eyrolles, Paris, 1988" [BIBLI 05].
a length of side A b length of side B c length of side C ta angle opposite to side A tb angle opposite to side B tc angle opposite to side C
sample run
$triangle -a 18 -tb 110 -tc 52.2Angle unit: PI = 180
A = 18.0000000000000 B = 55.3311291183785 C = 46.5260338924988
TA = 17.8000000000000 TB = 110.0000000000000 TC = 52.2000000000000
Surface: 393.481559106180
Nemo Release 3.1 | triangle (1) | February 23, 2025 |