Skip to content

Main content

Activation: Squareplus Scalar Inverse Tool

Invert squareplus y=(x+sqrt(x*x+b))/2 for positive supplied smoothing b and y>0.

Loading tool…

Description

For squareplus(x)=(x+sqrt(x²+smoothing))/2, require y>0 and smoothing>0.

Squareplus is the algebraic rectifier (x+sqrt(x²+b))/2. A positive smoothing term b gives a strictly positive output and a smooth inverse, while allowing b=0 admits a clipped rectifier. Here smoothing/bias denotes the term inside the square root, rather than an additive output bias.

For squareplus(x)=(x+sqrt(x²+smoothing))/2, require y>0 and smoothing>0.

When to use this tool

Use Activation: Squareplus Scalar Inverse when checking the stated squareplus inverse, smoothing or derivative convention.

How to use the tool and how it works

  1. Enter y, smoothing. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read result. Expand result to inspect the returned fields.

For squareplus(x)=(x+sqrt(x²+smoothing))/2, require y>0 and smoothing>0. Invert it as x=y-smoothing/(4*y).1

Squareplus uses a nonnegative parameter inside its square root. Strictly positive smoothing and the zero-smoothing rectifier case differ; the input domain and feasibility flags above specify which case this helper covers.2

Input fieldMeaning and unitsAccepted input
yYRequired. Finite number.
smoothingSmoothingRequired. Finite number.
Output fieldInterpretationReturned shape
resultObject containing the operation-specific returned members listed below.Required. Object.
result.xFinite scalar input coordinate; use the mathematical scale specified above.Calculated result member: number.
json
{
  "input": {
    "y": 2,
    "smoothing": 4
  },
  "output": {
    "result": {
      "x": 1.5
    }
  }
}

Limitations and assumptions

  • Only the strictly positive output branch is invertible here; near-zero y may produce an unrepresentable result.
  • Outputs are nested inside result. Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use the complete explicit function and the intended parameter, branch and numerical conventions for symbolic, tensor or model-level differentiation; assess training behavior independently.

References

  1. Calculation and input contract: activation/squareplus-scalar-inverse — tool.io

  2. Squareplus: A Softplus-Like Algebraic Rectifier — Jonathan T. Barron

Similar or alternative tools