Overview
The Analog Differential is an Analog Gate that calculates the absolute difference between two input Redstone signals and outputs the result. The equation for the Redstone signal at the Output (O) based on the two input Redstone signals (IA and IB) is:
The modulus operator (| |) ensures the result is always positive by removing any negative sign from the difference.
Configuration
The inputs are marked with Pin Mark A and can be configured to face any direction for normal Analog Differential by right-clicking the block.
Parallel Analog Differential
The Parallel Gate version of Analog Differential works slightly differently. It calculates the output based on the following steps:
- Determines the greatest Redstone signal value between the Left (L) and Right (R) inputs.
- Calculates the absolute difference between this value and the Redstone signal at the Back (B) input.
The equation for the Output (O) is: