15 lines
166 B
PostScript
15 lines
166 B
PostScript
/findmean{
|
|
/x exch def
|
|
/sum 0 def
|
|
/i 0 def
|
|
x length 0 eq
|
|
{}
|
|
{
|
|
x length{
|
|
/sum sum x i get add def
|
|
/i i 1 add def
|
|
}repeat
|
|
/sum sum x length div def
|
|
}ifelse
|
|
sum ==
|
|
}def
|