BlockWerk Documentation
×

Product

Math

The Product block multiplies multiple input signals together, producing their algebraic product as output. This is a fundamental mathematical operation used for signal scaling, modulation, power calculations, and building non-linear systems.

The block accepts any number of input connections via a single input port. All received values are multiplied into a single output signal.

Simulate in BlockWerk

Interactive sandbox directly in your browser — zero installation, WASM-powered.

Simulate in BlockWerk →

Mathematical Model

The Product block implements:

y(t)=∏i=1nui(t)y(t) = \prod_{i=1}^n u_i(t)

Where:

  • y(t) is the output signal at time t
  • u₁(t), u₂(t), ..., uₙ(t) are the input signals
  • n is the number of connected inputs

When no inputs are connected, the output is 0.0.

Inputs & Outputs

Direction ID Label Type Status
→ In in × number Required
← Out out Product number Output

Usage Examples

Signal Scaling

Multiply a variable signal by a constant factor:

Signal A → Product → Output
Constant (value: 0.5) → Product

Simple Modulation

Multiply a low-frequency signal by a high-frequency carrier:

AudioSignal → Product → Output
CarrierWave → Product

Remarks & Best Practices

  • Identity Element: Mathematically, the identity for multiplication is 1.0, but this block defaults to 0.0 when disconnected to prevent unexpected non-zero signals on the canvas.
  • Multiple Inputs: Use a single input port to connect multiple signals; the block automatically expands to accommodate them.
  • WASM Performance: Highly optimized implementation for real-time calculation even with many inputs.

Related Components

  • Sum: For signal addition
  • Gain: For fixed-factor signal scaling
  • Constant: To provide static multiplication factors
  • NumericDisplay: To view the multiplication result