logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

invert - Compute the inverse of the input signal

Author

       Stephen Wille Padnos

Functions

invert.N (requires a floating-point thread)

License

       GPL

LinuxCNC Documentation                             2025-06-19                                          INVERT(9)

Name

       invert - Compute the inverse of the input signal

Parameters

invert.N.deadband float rw
              The out will be zero if in is between -deadband and +deadband.

Pins

invert.N.in float in
              Analog input value

       invert.N.out float out
              Analog output value

See Also

invert(9), div2(9)

Synopsis

       The  output  will be the mathematical inverse of the input, ie out = 1/in.  The parameter deadband can be
       used to control how close to 0 the denominator can be before the output is clamped to 0.   deadband  must
       be at least 1e-8, and must be positive.

See Also