Here is fun way to use broadcasting to get a hang of how each coefficient of a polynomial equation affects the behavior of its curve. We will use the following polynomial for this demo:
This can be done in two ways:
Set the
Another way is to visualize the plot for multiple values of :
Thus, simply translates the curve vertically.
You can also use a slider to change the values:
a1Make sure to reset .
You can also just animate it.
Let's use a slider again:
Lastly, you can try making the same changes to :
Now try broadcasting:
Let's use a slider: