Polynomial Grapher

Embed Graph

Copy and paste: If you adjust the width and height parameters, the graph will scale to fit inside the box.

Parameters

a -- Polynomial coefficients (an).

-- The polynomial equation can be specified in the url by passing the coefficients (a) as a reversed, comma delimited sequence. For example: the equation:

y = x2 + 2 x - 3

Is referenced as:

https://soriki.com/js/polynomials/poly.html?a=-3,2,1

show_input -- Show the input box at the top of the graph.

-- Turn off the input box at the top of the graph by setting show_input to 0:

show_input=0

For example, the url for the above equation with no input box would be:

https://soriki.com/js/polynomials/poly.html?a=-3,2,1&show_input=0

fit -- Adjust the size of the graph in the iframe. Options:

auto - (default) scales so graph is slightly smaller than window so there are no scroll bars on the frame.

full - scales so graph is fully fits the smallest dimension of the iframe window.

none - creates 600x600 pixel graph in a window.

For example, the url for the above equation with no input box and full fit:

https://soriki.com/js/polynomials/poly.html?a=-3,2,1&show_input=0&fit=full

range -- The maximum range (positive and negative) for the axes.

-- The default range is 10 so the x and y axes minimums are -10 and the maximums are 10 (as shown above). By default, the tick marks are interpolated to be 10% of the range. To change the range to 20 use:

range=20

So, for example:

https://soriki.com/js/polynomials/poly.html?a=-3,2,1&range=20

dx -- The interval between tick marks on the axes

-- The default tick marks are interpolated to be 10% of the range if the width of the graph is greater than 300 pixels, and 20% if smaller (note that these do not exactly correspond to the values set for the iframe since, except for the fit=none option, some adjustment is made. To change the dx to 5 use:

dx=5

So, for example (with the range set to 20):

https://soriki.com/js/polynomials/poly.html?a=-3,2,1&range=20&dx=5


Advertisments
Creative Commons LicenseGraphing Polynomials by Lensyl Urbano is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Based on a work at earthsciweb.org.