Single-Variable Function Calculator (Apply f(x) to a Data Column)
Apply square, square root, logarithm, trigonometric and other functions to a list of numbers at once, and compare each input with its result in a table. Multiplying or adding a constant is supported too.
Input
Enter values separated by line breaks, commas, or spaces. Anything that can't be read as a number is ignored automatically.
Result
Applied function (6 values)
x²
Values computed
6
Sum of results
155
Mean of results
25.833333
Inputs and results
| # | Input x | x² |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 2 | 4 |
| 3 | 3 | 9 |
| 4 | 4 | 16 |
| 5 | 5 | 25 |
| 6 | 10 | 100 |
How it works
- Numbers can be separated by line breaks, commas, or spaces. Anything that can't be read as a number is ignored automatically, so you can paste data even when headers or units are mixed in.
- There are 12 functions to choose from: square, square root, reciprocal, common logarithm (log₁₀), natural logarithm (ln), exponential (eˣ), sine, cosine, tangent, absolute value, multiply by a constant, and add a constant. For the constant-based functions you can enter any value a.
- Square root accepts only values of 0 or greater, the reciprocal excludes 0, and logarithms accept only positive values. Values outside the domain are shown as “—” in the table and excluded from the count, sum, and mean.
- Trigonometric functions (sin, cos, tan) are computed in radians by default. To enter values in degrees, switch the angle unit to “Degrees” and they are converted to radians internally before the calculation.
- The sum and mean of the results are a simple arithmetic mean (sum ÷ count) over the values that could be computed. Note that these are not statistics such as variance or standard deviation.
Related calculators
Flash Shooting Distance
HobbyCalculate the ideal shooting distance to your subject from a flash unit's guide number, aperture and ISO.
Open calculator →Flash Aperture Calculator
HobbyCalculate the correct f-stop for flash photography from guide number, distance, and ISO. Instantly see the nearest standard f-stop and the correct distance for each aperture.
Open calculator →Lens Focal Length Calculator
HobbyEstimate the lens focal length (mm) and 35mm equivalent you need from your subject distance, real size, and sensor width.
Open calculator →Camera Angle of View Calculator
HobbyEnter a lens focal length and image sensor size to instantly calculate how wide a scene the camera captures: the horizontal, vertical, and diagonal angle of view. Includes presets for full frame, APS-C, Micro Four Thirds and more (plus custom sensor sizes) and shows the 35mm equivalent focal length too.
Open calculator →