When I Enter the following code, Mathematica returns "Tag piecewise in (piecewise function) [x_] is protected, and when I plot this, the mid piece does not appears, someone can tell me where is the error of my code?
Hi Rubens,
Most likely you have a conflicting definition for Subscript[\[Psi], 1][x_]. Try
Remove[\[Psi]]
And use SetDelayed in the definition, :=, not =.
Hi Rohit, thank you. The error has been fixed but the mid piece dont appears on my graph, do you know tell me why?
Add PlotRange -> All or reduce the x range
Plot[Piecewise[
{{5.66048 E^(0.76` x), x < -5},
{0.398447 Cos[0.25 x], -5 <= x <= 5},
{5.66048 E^(-0.76` x), x > 5}}, 0],
{x, -10, 10}]
LogPlot[Piecewise[
{{5.66048 E^(0.76` x), x < -5},
{0.398447 Cos[0.25 x], -5 <= x <= 5},
{5.66048 E^(-0.76` x), x > 5}}, 0],
{x, -10, 10}]

