Changes between Version 1 and Version 2 of Ticket #21071, comment 13


Ignore:
Timestamp:
Dec 28, 2016, 7:01:35 AM (6 years ago)
Author:
rws
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21071, comment 13

    v1 v2  
    11There is an ambiguity. What is the expected result of
    22{{{
    3 sage: f = piecewise([((-2, 0), -x), ([0, 2], x)], var=x)
     3sage: f = piecewise([((0,2), x), ([-2,0], -x)]
    44sage: (x+f).subs(x==1)
    55
    6 piecewise(x|-->-1 on (0, 1), x|-->1 on [-1, 0]; x) + 1
     6piecewise(x|-->1 on (0, 2), x|-->-1 on [-2, 0]; x) + 1
    77or
    882?