- #1
member 428835
Hi PF!
Can someone explain the second line of the proposed solution on this thread to me
https://mathematica.stackexchange.com/questions/138919/how-to-implement-a-loop-inside-piecewise
Specifically, I have a function un(x) that looks like
I am trying to make this function piecewise such that un[x][[1]] is plotted over a domain ##x\in(0,2h)## and then un[x][[2]] ##x\in(2h,4h)##. I'm unsure how to loop through this procedure. Ultimately un[x] will have many more components, so automating this would be helpful.
Thanks!
Can someone explain the second line of the proposed solution on this thread to me
https://mathematica.stackexchange.com/questions/138919/how-to-implement-a-loop-inside-piecewise
Specifically, I have a function un(x) that looks like
I am trying to make this function piecewise such that un[x][[1]] is plotted over a domain ##x\in(0,2h)## and then un[x][[2]] ##x\in(2h,4h)##. I'm unsure how to loop through this procedure. Ultimately un[x] will have many more components, so automating this would be helpful.
Thanks!