Logofunctionguessr
Wiki Navigation
Reference

All Functions Reference

A complete list of all functions supported by Function Guessr.

All Functions Reference

Here is a complete list of all functions you can use in Function Guessr.

Arithmetic

FunctionSyntaxDescriptionExample
Additiona + bAdds two values.x + 1
Subtractiona - bSubtracts the second value from the first.x - 2
Multiplicationa * bMultiplies two values.2 * x
Divisiona / bDivides the first value by the second.x / 2
Powera ^ bRaises a to the power of b.x ^ 2
Square Rootsqrt(x)Returns the square root of x (x0x \ge 0).sqrt(x)

Trigonometric

FunctionSyntaxDescriptionExample
Sinesin(x)Sine of x (radians).sin(x)
Cosinecos(x)Cosine of x (radians).cos(x)
Tangenttan(x)Tangent of x (radians).tan(x)

Inverse Trigonometric

FunctionSyntaxDescriptionExample
Arcsinasin(x)Inverse sine. Result in [π/2,π/2][-\pi/2, \pi/2].asin(x)
Arccosacos(x)Inverse cosine. Result in [0,π][0, \pi].acos(x)
Arctanatan(x)Inverse tangent. Result in (π/2,π/2)(-\pi/2, \pi/2).atan(x)

Hyperbolic

FunctionSyntaxDescriptionExample
Hyperbolic Sinesinh(x)(exex)/2(e^x - e^{-x}) / 2sinh(x)
Hyperbolic Cosinecosh(x)(ex+ex)/2(e^x + e^{-x}) / 2cosh(x)
Hyperbolic Tangenttanh(x)(exex)/(ex+ex)(e^x - e^{-x}) / (e^x + e^{-x})tanh(x)

Exponential & Logarithmic

FunctionSyntaxDescriptionExample
Exponentialexp(x)exe^x (base e2.718e \approx 2.718).exp(x)
Logarithmlog(x) or ln(x)Natural logarithm (base ee) of x (x>0x > 0).log(x)

Utility & Step Functions

FunctionSyntaxDescriptionExample
Absolute Valueabs(x)Returns the magnitude of x.abs(x)
Roundround(x)Rounds to the nearest integer.round(x)
Floorfloor(x)Rounds down to the nearest integer.floor(x)
Ceilceil(x)Rounds up to the nearest integer.ceil(x)
Signsign(x)Returns -1, 0, or 1 based on sign of x.sign(x)
Maximummax(a, b)Returns the larger of a and b.max(x, 0)
Minimummin(a, b)Returns the smaller of a and b.min(x, 1)
Function Guessr Wiki