Patent ID: 8749553

Claim:
A method comprising: dividing, using a computing device, a range of variable values of an independent variable in a mathematical function into a plurality of sub-ranges; selecting, by the computing device, a plurality of initial variable sample values within a particular sub-range of the plurality of sub-ranges; calculating, by the computing device, function values for corresponding initial variable sample values of the plurality of initial variable sample values within the particular sub-range; determining, by the computing device and based on the particular sub-range, that a difference between the calculated function values exceeds a threshold value; modifying, by the computing device, the particular sub-range by adding a plurality of additional sample variable values to the particular sub-range based on the determination, adding the plurality of additional sample variable values to the particular sub-range including: calculating function values for the plurality of additional sample variable values, within the particular sub-range, until a difference between the calculated function values for the plurality of additional sample variable values is less than the threshold value; and plotting, by the computing device, a graph of the mathematical function on a web page based on the modified particular sub-range.