Spherical Triangles
Oblique Triangle
Same unit sphere. A fourth number is the optional radius R. A=(1,0,0), B=(0,1,0), C=(0.6,0,0.8).
The vertices are A = (1, 0, 0), B = (0, 1, 0), and C = (0.6, 0, 0.8) on the unit sphere centered at the origin. C is not on an axis, so the triangle is oblique and its angles are not all right angles.
Edges are the short great-circle arcs. The angles come from the spherical law of cosines, and the area is the angle excess times R². The result panel reports the angles, the excess, and the area for these three points.
Equation
spherical_triangle((1,0,0), (0,1,0), (0.6,0,0.8))
Which spherical convention this uses
DGS has two spherical notations, and they do not use the angles in the same order. The command spherical(r, theta, phi) measures theta down from the positive z-axis and phi around from the positive x-axis. The rho = f(theta, phi) graphs use phi as the polar angle and theta as the azimuth.
Keeping those conventions apart is the main thing this group teaches. A point command places one dot and prints the conversion. A rho equation sweeps a whole surface. A spherical triangle then measures angles and area on the sphere with Girard's theorem.
Reading the input
spherical_triangle((1,0,0), (0,1,0), (0.6,0,0.8))— This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
Try a change
- Edit one number in the field, then use Generate Graph. The studio opens on the homepage with the edited text and runs it.
- Use Open in DGS Studio when you want the expression loaded but not run yet.
Generate Graph posts the expression to the studio graph engine and draws the result on the homepage. The editable field is the entire input, including every line.