Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    $\begingroup$ It might be safer to extract data with Internal`FromPiecewise. Something like getPieces[f_Piecewise] := MapThread[ConditionalExpression[#2, #1] &, Internal`FromPiecewise[f]] $\endgroup$ Commented Jan 6, 2016 at 18:00
  • $\begingroup$ @ChipHurst Thanks. It seems like it correlates the default value to True, so I'd still need to replace it with complement of the other domains. But it is a nice way to get all the conditions & expressions. $\endgroup$ Commented Jan 6, 2016 at 18:26
  • $\begingroup$ Ah! You're right! $\endgroup$ Commented Jan 6, 2016 at 18:34