[metapost] drawing a beta-distribution?

Troy Henderson thenders at gmail.com
Thu Jan 10 22:43:56 CET 2008


Martin,

MetaPost can perform basic computations, but it doesn't have a large
library of functions to choose from.  Essentially all of the
elementary functions are available to MetaPost, but special functions
like the Gamma function and Beta function are not supported directly
in MetaPost.  The technique that I would use to graph these functions
with MetaPost would be to generate (x,y) data for each of these (with,
for example, Octave) and export the data to a datafile.  MetaPost can
then import this datafile and draw the corresponding path.

Troy


More information about the metapost mailing list