Turtle, Observer, Patch

median-of-list list

Parameters:
list List list of numbers for which you want the median value

Description:
Returns the median of the given list.

Examples:
median-of-list [ 1 3 5 7 9] returns 5.

Notes:
If an element in list is not a number, an error occurs.

If list contains no numbers, an error occurs. If some of the list, when evaluated, are not numbers, those values are ignored.

Related Commands:
average-of-list max-of-list min-of-list mode-of-list sdev-of-list sum-of-list variance-of-list