---
name: "sum2"
section: "9"
platform: "linux"
package: "linuxcnc-uspace"
version: "1:2.9.4-2+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/sum2"
---

# sum2(9)

Sum of two inputs (each with a gain) and an offset

## NAME

sum2 - Sum of two inputs (each with a gain) and an offset

## SYNOPSIS

**loadrt sum2 \[count=*N*\|names=*name1*\[,*name2...*\]\]**

## FUNCTIONS

- **sum2.***N* (requires a floating-point thread)

  ## PINS

- **sum2.*N*.in0 float in**

  - **sum2.*N*.in1 float in**

  - **sum2.*N*.out float out**

  out = in0 \* gain0 + in1 \* gain1 + offset

## PARAMETERS

- **sum2.*N*.gain0 float rw (default: *1.0*)**

  - **sum2.*N*.gain1 float rw (default: *1.0*)**

  - **sum2.*N*.offset float rw**

  ## SEE ALSO

[scaled\_s32\_sums(9)](/scaled_s32_sums/9.md), [weighted\_sum(9)](/weighted_sum/9.md)

## AUTHOR

Jeff Epler

## LICENSE

GPL
