gp-inline runs Pari/GP tests and checks written inline as comments in document source such as TeX or Perl POD, or even in program code. This can help guard against mistakes of arithmetic etc in a document. GP has various data types and number theory functions allowing quite sophisticated mathematics to be checked alongside the statement of a formula etc.

... so two lots of 7 and three lots of 6 for total 32.
% GP-Test  2*7 + 3*6 == 32
The GP-Test line is a comment so ignored by TeX or similar but gp-inline extracts it and runs it with GP. Various other comment prefixes are recognised too. Read more in the (24k, html).

gp-inline is free software (free as in freedom), published under the terms of the GNU General Public License (v3 or up). Download version 10 here and chmod it to executable for use. Requires Perl 5.6 up and IPC::Run.

gp-inline (37k, and sig)

Or for ease of install/remove as a .deb, and its source.

gp-inline_10-0.1_all.deb (33k, and sig)
gp-inline-10.tar.gz (51k, and sig)
The sig files are Gnu PG ascii armoured signatures generated from my key.

An accompanying Emacs gp-inline.el can pass tests or defines to a PariEmacs GP sub-process. gp-inline.el in the .deb, .tar.gz, and my ELPA archive. (And see my packaged pariemacs for a .deb of PariEmacs.)

See also PariGP at the Emacs Wiki.

This page Copyright 2015, 2016, 2017, 2018, 2019, 2021 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).