How to squish and squash x-axis hyperbolic tangent

408 Views Asked by At

Consider the following equation:

$$\frac{1}{2} (1 -\tanh[2(x-100)])$$

enter image description here

How can I modify the equation to adjust the steepness of the vertical-ish section centered about the line $x=100$? That is, how can I make the blue curve look more like the dark red curve, or vis versa.

enter image description here

1

There are 1 best solutions below

1
On BEST ANSWER

Instead of $$ y= \frac{1}{2}(1-\tanh{\left(2[x-100]\right)}) $$ make it $$ y= \frac{1}{2}(1-\tanh{\left(\alpha[x-100]\right)}) $$ and adjust the value of $\alpha$. Done.