NAME
M_math(3fm) - [M_math::INTRO] module collecting various general math-related procedures
DESCRIPTION
GEOMETRY
- citer(3f) determine various geometric properties of circle segment given radius and area of the segment.
- envelope(3f) Find the vertices (in clockwise order) of a polygon enclosing the points (x(i), y(i), i=1, ..., n.
- inpolygon(3f) Subroutine to determine whether or not a point is in a polygon
- locpt(3f) find if a point is inside a polygonal path
- poly_intercept(3f) find points where a line intersects a polygon
- polyarea(3f) find area of a polygon
- closest(3f) find point in arrays closest to target point
FIT
STATISTICS
PERMUTATIONS
- nextp(3f) next permutation of a previously sorted integer array
SCALES AND RANGES
- scale1(3f) given xmin,xmax,n, find new range xminp xmaxp divisible into approximately n linear intervals of size dist
- scale3(3f) find nice log range, typically for an axis
MATRICES
POLYNOMIALS
CURVE FITS TO FUNCTIONS
- gcsgau1: solve a system of simultaneous linear equations
- glstsq: least squares fit to a polynomial expression
THE CALCULUS
- qhfg: compute vector of integral values for given general table
- qhsg: compute vector of integral values for given general table
- qtfg: compute vector of integral values for given general table
- trapezoidal_integral: compute vector of integral values for given general table