a MATLAB program which
calls circle_segment() to carry out computations associated with a circle segment, including
height, width, angle, area, centroid, sampling, and quadrature.
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Related Data and Programs:
a MATLAB library which
carries out computations associated with a circle segment, including
height, angle, area, centroid, sampling, and quadrature.
calls all the tests.
runs all the tests.
the output file.
tabulates a few quadrature rules with gqcircsegm().
plots a few quadrature rules computed by gqcircsegm().
approximates integrals with gqcircsegm().
tests circle_segment_area_from_height() and
tests circle_segment_angle_from_height() and circle_segment_height_from_angle().
looks at the area and centroid calculations.
checks circle_segment_test04 by calling MATLAB's QUAD2D().
plots some rotated rules from circle_segment_rule_from_chord().
demonstrates the use of gauss() to compute some quadrature rules.
demonstrates the use of r_jacobi() to compute recursion coefficients
for a quadrature rule associated with a Jacobi weight function.
demonstrates weights_t3() (and this test is NOT WORKING).
Test 3 plots quadrature points for circle segments of various angles THETA:
Test 6 samples points from circle segments of various angles THETA:
Test 12 plots the quadrature points for several rules, defined on
circle segments that are specified by R (circle radius), C (circle center),
and P1, P2 (the points that define the chord.)
points for rule of radius 2, center (1,0), p1 at pi/4, p2 at 5pi/4.
points for rule of radius 1.5, center (-1,2), p1 at 5pi/6, p2 at 10pi/6.
Test 16 plots points for circle sectors.
Test 17 plots points for a circle segment.
Last revised on 13 December 2018.