I have two separate Piecewise functions wit the same domain ranges. Is it possible to get a third PWF that is the product of the first two?
josecalderon
(Jose Calderon)
1
fkampas
(Frank Kampas)
2
p1 = Piecewise[{{1, x < 1}}, 2];
p2 = Piecewise[{{2, x > 2}}, 1];
p3 = PiecewiseExpand[p1*p2]
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to compare two or even more piecewise functions to get a opitmal one? | 4 | 15490 | January 8, 2014 | |
| Get a Piecewise representation of integrals of piecewise functions? | 4 | 5976 | June 1, 2018 | |
| Reduce a Piecewise function into single equation? | 2 | 7694 | June 29, 2016 | |
| How do I get the Piecewise function into a form I can plot? | 2 | 4651 | November 22, 2013 | |
| How can I completely simplify the result of "PiecewiseExpand" ? | 5 | 8925 | October 15, 2018 |