This is some coordinate geometry functions for
Pari/GP. Most are fairly simple
lengths, areas, and inertia. Calculations are kept exact using quads as much
as possible. See the comments in
geom-inertia.gp for details.
geom_area_of_polygon([0, 1, 2+I, 1+2*I, I]) == 5/2
geom.gpis basic functions. The additional
geom-inertia.gphas functions for mass moment of inertia represented in 3×3 matrices. Both are slightly preliminary in places, but do some useful things as far as they go.
geom.gp(21k, and sig)
geom-inertia.gp(30k, and sig)
geom-1.tar.gz(44k, and sig)
This page Copyright 2017 Kevin Ryde, except for the GPLv3 logo which is Copyright Free Software Foundation and used here in accordance with its terms.
(Back to the sitemap, or the Pari/GP section there).