import numpy as np
import matplotlib.pyplot as plt
xarray. Call it normal_array:
normal_array:
xarray as x-variable, create a new array yarray as y-variable using the function $y = 10* cos(x) * e^{-0.1x}$:
array_abs by taking the absolute value of array_mul:
array_abs are True and the others False
array_abs. Check that the dimensions are the ones you expected. Also are the values around the value you expect?
yarray vs xarray:
normal_array as an imagage and change the colormap to 'gray':
xarray and yarray.
yarray that are larger than 0. Plot those on top of the regular xarray and yarrayplot.
xarray use it to plot yarray:
normal_array. Concatenate it to normal_array along the first dimensions and plot the result:
yarray represents a signal. Each line of normal_array represents a possible random noise for that signal. Using broadcasting, try to create an array of noisy versions of yarray using normal_array. Finally, plot it: