[metapost] Function defined by a sum

Nicolas FRANCOIS nicolas.francois at free.fr
Wed Oct 31 16:00:02 CET 2007


I'd like to show the Gibbs phenomenon on an example. For this I'd like to
draw the partial sums of the Fourier serie :


For the first five partial sums, I can of course tpe them by hand. But
what about the sum number 20 ? And 50 ? Is there a "sum" construction
available in Metapost ? Or some for loop ?

Thanks for any help.



                   Nicolas FRANCOIS
 A TRUE Klingon programmer does NOT comment his code

More information about the metapost mailing list