On Tue, 15 Oct 2013 19:05:19 +0200
Hans Hagen
On 10/15/2013 6:59 PM, Jean Magnan de Bornier wrote:
Le 14 octobre à 22:56:59 Hans Hagen
écrit notamment: | On 10/14/2013 2:38 PM, Jean Magnan de Bornier wrote: | > Hello all, | > | > Is it possible to define a path in metapost-metafun using "function"? In | > the metafun manual (chapter on Functions) the examples shown are all of | > the type "draw function ...". I wonder if it is possible to define a path | > with a function ("picture" after draw doesn't allow that afaik)?
| there are some helpers in the new graph module, but Alan has to give | an example
| % least-squares "fit" to a polynomial | % | % example : | % | % path p[] ; | % numeric a[] ; a0 := 1 ; a1 := .1 ; a2 := .01 ; a3 := .001 ; a4 := | 0.0001 ; | % p0 := makefunctionpath(0,5,10,polynomial_function(a,4,x)) ;
| (it fails here so I probably misunderstand it)
I could not find this module ? (I always update with --modules=all)
mp-grap.mpiv
but Alan has to show how to use that feature (outside graph)
This only will work within the graph environment and using the double precision mathematical model. The updated graph documentation is close to being released - promised for the proceedings for the last ConTeXt meeting. Alan