I defined a function u[y]
.
Λ = -30;
u[η_] := (2*η - 2*η^3 + η^4) + Λ / 6*(η - 3*η^2 + 3*η^3 - η^4);
θ = Integrate[u[η]*(1 - u[η]), {η, 0, 1}] // N;
δ = 1/θ;
u[y_] := (2*y/δ - 2*(y/δ)^3 + (y/δ)^4) + Λ/6*((y/δ) - 3*(y/δ)^2 + 3*(y/δ)^3 - (y/δ)^4);
For values y / δ >1
the function has to return u[y] = 1
.
How to define this condition?
The result of the function for 0 < y < 80
has to be like the image:
Piecewise
orCondition
. Note your code is difficult to read and could be much simplified. $\endgroup$