Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Asha plots for from to . How many asymptotes does the graph have in that range? What is the period of the tangent? What power of ten is np.tan(np.pi / 2), which is about times that power?
has amplitude , period and phase shift to the right. repeats every and has asymptotes where . np.linspace(a, b, n) makes numbers with both ends included. Angles in degrees must be converted with np.radians before np.sin.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. The asymptotes. At , , and . The next, , is beyond . That is asymptotes.
Step 2. Period. The tangent repeats every rad.
Step 3. The huge value. np.tan(np.pi / 2) prints 1.633123935319537e+16, which is .
Answer: asymptotes, a period of rad, and a power of ten of .
Log in to join the discussion.
Loading…