You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sympy
In PR #13204 I encountered the question of what to do with the derivative if a Boolean. A Boolean is true or false but may contain expressions within relationals, For example, `x**2 < y` depends on x and y but the Boolean value is a "square wave" for this relational. Does a derivative wrt x or y even make sense? Should an error, 0 or something else be done for a return value?
/c
Aaron Meurer
unread,
Sep 19, 2017, 4:25:01 PM9/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
I'm not sure the derivative really makes sense. I would either error
or leave it unevaluated.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sympy
I will need some help interpreting that. Here's my attempt:
>>> f = eq = ITE(x<1,x,Eq(y,1)).to_nnf(); eq (x∨x≥1)∧(y=1∨x<1)(x∨x≥1)∧(y=1∨x<1) >>> eq.subs(x,0) False >>> eq.subs(x,1) y =1
I'm not sure how I am supposed to add these mod 2. Maybe `(0 + ITE(Eq(y,1), 1, 0)) % 2`? So does x change the value of f? The answer depends on y, doesn't it? If y is 0 then the value of x doesn't change f but it it is 1 then it does. So is the derivative wrt x `Eq(y, 1)`?
Alan Bromborsky
unread,
Sep 20, 2017, 1:50:22 PM9/20/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
I afraid I can't help there. I am good
at finding things with google. This might help, maybe?