## Import libraries


```python
from matplotlib import pyplot as plt
import numpy as np

%matplotlib inline
```

## Define function
The goal is to create a plot of the following function
\begin{equation}
f(x)=0.2+0.4x^2+0.3x\cdot\sin(15x)+0.05\cos(50x)
\end{equation}


```python
x = np.linspace(0, 1, 100)
y = 0.2+0.4*x**2+0.3*x*np.sin(15*x)+0.05*np.cos(50*x)
```

## Produce figure


```python
plt.figure(figsize=(6, 6))
plt.plot(x, y)
plt.show()
```


```python

```

b6dca8dda8d1d538be59f1e6e79a37bdff721664
ipynb
Jupyter Notebook
function-plot.ipynb
ibqn/jupyterlab-ext
a4e6bb59331334de9996c2dcd0009959ba56fe34
BSD-3-Clause
2019-09-14T01:23:56.000Z
2021-04-28T05:59:15.000Z
function-plot.ipynb
ibqn/jupyterlab-ext
a4e6bb59331334de9996c2dcd0009959ba56fe34
BSD-3-Clause
2020-03-31T10:57:26.000Z
2021-08-24T13:38:46.000Z
function-plot.ipynb
hso-nn/jupyterlab-codecellbtn-extra
7e3b5e87d47add71536b29fc6e5f196c298c11ec
BSD-3-Clause
2019-11-30T03:09:35.000Z
2022-01-23T07:49:17.000Z
Qwen/Qwen-72B
1. YES
2. YES