 #1
joshmccraney
Gold Member
 1,959
 102
Hi PF!
Can someone explain the second line of the proposed solution on this thread to me
https://mathematica.stackexchange.com/questions/138919/howtoimplementaloopinsidepiecewise
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/howtoimplementaloopinsidepiecewise
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!
Attachments

17.3 KB Views: 743