One function of x
Enter an explicit function such as 2*x+1 or sin(x). The page reports y at the x you type, then lists all 401 sampled values in a table. The drawing uses those samples. It is not the only way to read the result.
The grammar allows numbers, x, pi, e, parentheses, and the functions sin, cos, tan, asin, acos, atan, sqrt, abs, log, ln, and exp. log is base 10. Multiplication must be written with *. 2x, percent, and factorial are not accepted. NIST DLMF §4.14 defines the elementary functions this page evaluates numerically.
Precedence and display
Powers bind more tightly than a leading minus. -3^2 is −9, while (-3)^2 is 9. 2^-3 is 0.125. 2^0.5 displays as 1.414214. A negative base with an exponent that is not an integer, such as (-8)^(1/3), is undefined on this page.
Radians are selected when the page opens. Choose degrees when the input to sin, cos, or tan is in degrees. Inverse functions return degrees in that mode. sin(90) in degrees is 1.00.
Values are shown to at most 6 decimal places, with at least two. A sample larger than 100,000,000 in absolute value is too large to plot. A value that cannot be continued inside the rational limit says the expression is too large to evaluate. 2^1000000 and exp(1000) are too large to plot. 2^-1000000 displays as 0.00. 0.999999^4000 is not replaced by zero.
The window and the table
The opening window is −10 to 10 on both axes. Each bound accepts at most 6 decimal places, from −1000000 through 1000000. The maximum must be greater than the minimum. Sample i is xmin + (xmax - xmin) * i / 400.
The table titled “Sampled values” repeats every sample. A gap is marked undefined, too large, or too large to evaluate. The drawing skips a segment at a gap and also when the change is greater than twice the height of the y window. That rule keeps a pole from being drawn as a steep line. It does not prove the function is continuous elsewhere.
1/x on the window from −2 to 2 has a sample at x = 0. That sample is undefined, and the samples on either side are not connected. sqrt(x) on the same x window leaves the negative samples disconnected. sin(x) from −10 to 10 connects its finite samples.
What this page does not do
It does not solve an equation, factor a polynomial, differentiate, or integrate. It does not plot a second function, an implicit curve, a polar graph, or a parametric curve. It does not call eval or send the expression to a graphing service. Percent and factorial remain on the scientific calculator. Exact fractions of integers remain on the fraction calculator.
Frequently asked questions
Why is the square root of 2 not longer?
The page rounds the binary64 value half away from zero to 6 decimal places.
2^0.5 displays as 1.414214.
Are the expression and the samples sent to analytics?
No. Analytics may record that this calculator ran. The expression, window,
probe, sampled values, and result stay in this browser.
Sources & review
- NIST Digital Library of Mathematical Functions, §4.14 Elementary Functions — NIST
- NIST Digital Library of Mathematical Functions, §4.2 Definitions — NIST
Last reviewed: . The formula is reproduced above so you can check the math independently.
One explicit function of x. This page does not solve equations or use a remote graphing service.