@@ -527,7 +527,7 @@ def restriction(self, parameters, variable, restricted_domain):
527
527
sage: f = piecewise([((-oo, oo), x)]); f
528
528
piecewise(x|-->x on (-oo, +oo); x)
529
529
sage: f.restriction([[-1,1], [3,3]])
530
- piecewise(x|-->x on [-1, 1] + {3}; x)
530
+ piecewise(x|-->x on [-1, 1] ∪ {3}; x)
531
531
"""
532
532
restricted_domain = RealSet (* restricted_domain )
533
533
new_param = []
@@ -559,7 +559,7 @@ def extension(self, parameters, variable, extension, extension_domain=None):
559
559
ValueError: point 3 is not in the domain
560
560
561
561
sage: g = f.extension(0); g
562
- piecewise(x|-->x on (-1, 1), x|-->0 on (-oo, -1] + [1, +oo); x)
562
+ piecewise(x|-->x on (-1, 1), x|-->0 on (-oo, -1] ∪ [1, +oo); x)
563
563
sage: g(3)
564
564
0
565
565
@@ -583,7 +583,7 @@ def unextend_zero(self, parameters, variable):
583
583
sage: f = piecewise([((-1,1), x)]); f
584
584
piecewise(x|-->x on (-1, 1); x)
585
585
sage: g = f.extension(0); g
586
- piecewise(x|-->x on (-1, 1), x|-->0 on (-oo, -1] + [1, +oo); x)
586
+ piecewise(x|-->x on (-1, 1), x|-->0 on (-oo, -1] ∪ [1, +oo); x)
587
587
sage: g(3)
588
588
0
589
589
sage: h = g.unextend_zero()
@@ -652,7 +652,7 @@ def piecewise_add(self, parameters, variable, other):
652
652
sage: f = piecewise([([0,1], 1), ((2,3), x)])
653
653
sage: g = piecewise([((1/2, 2), x)])
654
654
sage: f.piecewise_add(g).unextend_zero()
655
- piecewise(x|-->1 on (0, 1/2], x|-->x + 1 on (1/2, 1], x|-->x on (1, 2) + (2, 3); x)
655
+ piecewise(x|-->1 on (0, 1/2], x|-->x + 1 on (1/2, 1], x|-->x on (1, 2) ∪ (2, 3); x)
656
656
"""
657
657
points = ([minus_infinity ] +
658
658
sorted (set (self .end_points () + other .end_points ())) +
0 commit comments