Enhance P and Pf functions to accept multiple arguments, treated as a logical AND

Issue #89 resolved
Pierre Denis repo owner created an issue

It would be convenient that P and Pf functions accept multiple arguments, treated as a logical AND:

d = interval(1, 6, 'r')
P(2 <= d, d <= 5)
# -> 2/3 

Rationale: this is consistent with the handling of the arguments of the given method and this would simplify the writing of conjunctions:

P((2 <= d) & (d <= 5)) 

Comments (4)

  1. Log in to comment