Question: defining big piecewise function

Hello,

I have about 30 equations, let's call them Si

I want to plot them. Each Si is defined for some x between xi and xi+1

In other words, i want to plot:

S0  for x0 < x < x1

S1  for x1 < x < x2

S2  for x2 < x < x3

S for x3 < x < x4

... all the way to i=29

is there a way to do that without writing all of them explicitely ? (for example, using a sequence or a for loop)

thank you

Please Wait...