Loading editor...

Polynomial coefficients and broadcasting

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:

Define the polynomial


Change

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:


Change a1

Make sure to reset .

You can also just animate it.

Let's use a slider again:


Change

Lastly, you can try making the same changes to :

Now try broadcasting:

Let's use a slider: