summary:

A fifth order polynomial can change its directions as this one does three times.

description:

The input is in yellow and goes through the origin. The polynomial in red has real coefficients. Perhaps a different polynomial could switch directions 5 times, although I have yet to construct one.

command:

q_graph -out poly_5_origin -dir poly -box 5 -command 'q_add_n -3 -3 -3 -3 .005 .005 .005 .005 1000 | q_poly -n 5 -c 1 -n 1 -c 3 -n 0 -c -2' -color red -command 'q_add_n -3 -3 -3 -3 .005 .005 .005 .005 1000' -color yellow

equation:

Input: (-3, -3, -3, -3) to (2, 2, 2, 2)

Output:

Math Tag:

polynomial

Programming Tag:

command line quaternions

q_add

q_poly