Questions tagged [piecewise]

Questions about the Piecewise function, which is represented by different expressions for different ranges of values of its independent variable.

306 questions
Filter by
Sorted by
Tagged with
47 views

Maximization of a a PiecewiseExpand funcion

I have the following 3 piecewise functions and their upper envelope. ...
45 views

Find the intervals where a piecewise is maximum

I have the following 3 piecewise functions and I would like to have the threshold of the upper envelope. ...
98 views

Converting Piecewise function to C code

I'm trying to convert a function to C Code f = D[Piecewise[{{x^2, -10 < x < 0}, {x, x > 0}}], x] I decided to scan through conditions and corresponding ...
31 views

Extending a piecewise function defined over a limited domain to be periodic over a larger domain

I need to plot the piecewise function $\qquad f(x) = x^2\quad -2 <= x <= 0, \\ \qquad f(x) = 0\qquad 0 <= x <= 1 \\ \qquad f(x) = 1-x\quad 1 <= x <= 3 \\$ as a periodic ...
33 views

Function inverse to PiecewiseExpand [on hold]

I'm working with very complex piecewise functions which I'd like to decompose into combination of simpler ones. I'm aware of PiecewiseExpand function which does the opposite to what I need. Is there a ...
34 views

How to convert output from Reduce into a piecewise function?

Reduce often provides a much fuller solution than Solve. But it's always in the form of a true statement rather than functions ...
55 views

How to define a discrete distribution with non-integer sample space elements (outcomes)?

How to define a discrete distribution with non-integer states (sample space elements)? I know how to define a discrete distribution with integer states: ...
46 views

100 views

How to represent in a 3D graph the set of solutions to this system of inequalities?

I am studying this piecewise function: ...