Last modified: 2006-11-21 16:18:23 UTC
This is a request of implementation of these functions into the ParserFunctions, including patch implements these functions.
Created attachment 2693 [details] implementation of the functions these functions take an arbitary list of expressions and return the value defined by the function
Example, this code: *{{#min:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}} *{{#max:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}} *{{#mean:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}} *{{#median:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}} Will produce: * 0.4 * 345.866025404 * 55.8423659458 * 8
Created attachment 2694 [details] implementation of the functions Was thinking somewhat wrong when implementing the median man mean function.
Created attachment 2698 [details] implementation of the functions minor idiotic fix.
the exmplaes with the correct code: Example, this code: *{{#min:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}} *{{#max:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}} *{{#mean:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}} *{{#median:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}} Will produce * 0.4 * 345.866025404 * 51.5221687837 * 7
Created attachment 2718 [details] the final patch As a result of discussion, removing mean mad median, designatred for third party patch, min and max still wanted thou indicating of this patch
Created attachment 2749 [details] the patch fixed the whitespace problem once and for all
fixed in r17818