Bug? Odd behavior of [a b/c] with results from mean().
11-29-2015, 07:29 AM
Post: #9
 Joe Horn Senior Member Posts: 1,478 Joined: Dec 2013
RE: Bug? Odd behavior of [a b/c] with results from mean().
(11-28-2015 06:18 PM)Helge Gabert Wrote:  Good explanation, except median does result in the average of both middle terms, if the list has an even number of objects, at least in the current firmware

median({4,7,8,14}) returns 7.5 in CAS.

(11-28-2015 08:00 PM)DrD Wrote:  A list containing an even amount of numbers, after placing the numbers in increasing order, the median is half the sum (the average) of the two middle numbers.

Then median's behavior is inconsistent, because in CAS, when a, b, c, and d are nonexistent variables, median({a,b,c,d}) returns b, not (b+c)/2. (At least at this moment on this Prime emulator with its current settings on this laptop...).

<0|ΙΈ|0>
-Joe-
 « Next Oldest | Next Newest »

 Messages In This Thread Bug? Odd behavior of [a b/c] with results from mean(). - Michael K-K - 11-26-2015, 03:33 PM RE: Bug? Odd behavior of [a b/c] with results from mean(). - DrD - 11-26-2015, 04:40 PM RE: Bug? Odd behavior of [a b/c] with results from mean(). - Michael K-K - 11-26-2015, 05:43 PM RE: Bug? Odd behavior of [a b/c] with results from mean(). - DrD - 11-26-2015, 06:29 PM RE: Bug? Odd behavior of [a b/c] with results from mean(). - retoa - 11-27-2015, 09:52 PM RE: Bug? Odd behavior of [a b/c] with results from mean(). - Joe Horn - 11-28-2015, 02:14 PM RE: Bug? Odd behavior of [a b/c] with results from mean(). - Helge Gabert - 11-28-2015, 06:18 PM RE: Bug? Odd behavior of [a b/c] with results from mean(). - DrD - 11-28-2015, 08:00 PM RE: Bug? Odd behavior of [a b/c] with results from mean(). - Joe Horn - 11-29-2015 07:29 AM RE: Bug? Odd behavior of [a b/c] with results from mean(). - DrD - 11-29-2015, 08:03 AM RE: Bug? Odd behavior of [a b/c] with results from mean(). - Michael K-K - 11-29-2015, 08:13 AM RE: Bug? Odd behavior of [a b/c] with results from mean(). - Didier Lachieze - 11-29-2015, 09:31 AM RE: Bug? Odd behavior of [a b/c] with results from mean(). - DrD - 11-29-2015, 11:31 AM

User(s) browsing this thread: 2 Guest(s)