# Questions tagged [piecewise]

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

482 questions
Filter by
Sorted by
Tagged with
71 views

### How to transform the regions in which a piecewise function are defined?

I have a function f[x,y,z] that has a piecewise definition, i.e., its values depends on the ranges of the arguments. Now suppose I have a coordinate transformation <...
62 views

### Improving the curve of a quadratic spline interpolation

I have these data and I want to make a curve using quadratic spline interpolation. I am successful in computing the equations and plotting the curves. However, I noticed that the peaks of the curves ...
34 views

### Piecewise integration doesn't evaluate

I'm trying to integrate the following function: $$q(d, \theta) = q_x(d, \theta) + q_y(d, \theta) - 2q_x(d, \theta) q_y(d, \theta)$$ where \$q_x(d, \theta) = \min\left(2 - d\cos\theta, d\cos\theta\right)...
58 views

### Finding the maximum of a symbolic piecewise function

I have the function: coded as: ...
61 views

### Confusing cases in Piecewise

The following FullSimplify[Integrate[Exp[I ω t] Sin[ω x]/ω, {ω, 0, ∞}, Assumptions -> t > 0 && x > 0]] gives a piecewise output of the form I ...
22 views

### Problem with Piecewise function applying to matrix of polynomials

I have a matrix of a polynomial - function f f[t_, i_] := wielomianSpline[t, tx[[i]], wspfi[[i]]]; and I want to evaluate the ...
99 views

### Need an equation for modeling Tytler's Cycle

In all cultures over all time there appears, in different languages for different countries, the maxim "Shirtsleeves to shirtsleeves in three generations." This is a function with three ...
36 views

### Issue with piecewise functions and lists of rules

I have a list of data that I am connecting with a simple piecewise function. I then want to evaluate the piecewise function at a different list of points. I can do it the long way, but I am wondering ...
1 vote
41 views

1 vote
50 views

### A piecewise inequality not simplified to True [closed]

In = Simplify[-a + Piecewise[{{-b, t > c}}] < 0, {a > 0, b > 0, c > 0}] Out = Piecewise[{{-b, t > c}}] < a Why the result is not evaluated to ...
81 views

### How do I integrate this piecewise function with Mathematica?

I came across the question of what percent of numbers from 0 to 1 have a logerithm whose floor is even. What I did was I made a piecewise function: ...
186 views

### FunctionPeriod for functions defined in a Piecewise manner

To create a minimal example, consider a piecewise function: ...
167 views

### Plot discontinuities use Piecewise

how can I get a plot like this? I tried with in Mathematica 13.0: ...
68 views

### Piecewise Functions from List of Functions

I have multiple functions from two different NDSolves that I would piece together. Here is a working minimal example: ...
97 views

...