How to scale the sinusoid on the range $[0, 4pi]$ to the sinusoid on the range $[\frac{1}{10}, \frac{2}{10}]$?
I've had a couple of approaches, but I don't know how to do it. I tried use translation and it's simple, but difficult to me is linear scale
I'd like to use a python to plot:
import numpy as np
x = np.linspace(0,4*np.pi)
y = np.sin(x)
import matplotlib.pyplot as plt
plt.plot(x, y)
Edit: My bug:
import numpy as np
x = (np.linspace(0,4*np.pi))
y = np.sin(x)* (1/(40*np.pi)) + 1/10
print(y)
import matplotlib.pyplot as plt
plt.plot(x, np.sin(x))