Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14409 > unrolled thread

(amusement) surprising result from PossibleZeroQ

Started byPeter Pein <petsie@dordos.net>
First post2013-05-04 07:17 +0000
Last post2013-05-04 07:17 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  (amusement) surprising result from PossibleZeroQ Peter Pein <petsie@dordos.net> - 2013-05-04 07:17 +0000

#14409 — (amusement) surprising result from PossibleZeroQ

FromPeter Pein <petsie@dordos.net>
Date2013-05-04 07:17 +0000
Subject(amusement) surprising result from PossibleZeroQ
Message-ID<km2cmn$4lq$1@smc.vnet.net>
Dear group,

 playing around with distributions, I experienced one of these "that's
strange!"-moments.

 Take the quantile of a Pareto distribution

test = Quantile[ParetoDistribution[k, a], q];
InputForm@test

ConditionalExpression[Piecewise[{{k/(1 - q)^a^(-1), q < 1}}, Infinity],
 0 <= q <= 1]

I thought the nesting of ConditionalExpression and Piecewise could
simplify and tried every possible combination of 4 functions; to no avail:

Block[{f = {Refine, Simplify, FullSimplify, PiecewiseExpand}},
 Length[funcs =
   Composition @@@ Flatten[Tuples[f, #] & /@ Range[Length@f], 1]]
 ]
340

DeleteCases[Through[funcs[test]], test]
{}

My expectation has been sth. like

test2 = Piecewise[{{k/(1 - q)^(1/a), 0 <= q < 1},
                   {Infinity, q == 1}},
                  Indeterminate];

and

FullSimplify[test2 - test] // InputForm
ConditionalExpression[0, 0 <= q <= 1]

looks good. But compare this to

PossibleZeroQ[test2 - test] // InputForm
ConditionalExpression[False, 0 <= q <= 1]

I decided to classify that as "funny" :)

MemberQ[Attributes@PossibleZeroQ, Listable]
True


Have fun with or without Mathematica!

  Peter

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web