#!/usr/bin/env python # coding: utf-8 # In[2]: import matplotlib.pyplot as plt import numpy as np get_ipython().run_line_magic('matplotlib', 'inline')
# BEGIN QUESTION
name: q3
manual: true
# **Question 3.** Graph the function $f(x) = \arctan \left ( e^x \right )$.
# BEGIN SOLUTION
# In[13]: f = lambda x: np.arctan(np.exp(x)) xs = np.linspace(-10, 10, 100) ys = f(xs) plt.plot(xs, ys) plt.xlabel("$x$") plt.ylabel("$f(x)$") plt.title(r"$f(x) = \arctan \left ( e^x \right )$");
# END SOLUTION
# END QUESTION