Product
MathCalculates the algebraic product of all connected input signals. Features a multi-wire input terminal (multiple: true), enabling an arbitrary number of signals to be multiplied together in a single compact node. Essential for instantaneous electrical power calculations (), mechanical power and torque relations (), aerodynamic drag modeling (), amplitude modulation (AM), and modeling nonlinear multi-variable interactions.
Mathematical Model
For an arbitrary set of active input signals , the output represents the continuous product:
In the boundary case where only a single wire is connected (), the block functions as a transparent unity passthrough:
When no inputs are connected (), the block outputs zero:
Inputs & Outputs
| Direction | ID | Label | Type | Status |
|---|---|---|---|---|
| → In | in |
× | number | Required |
| ← Out | out |
Product | number | Output |
Usage Examples
Example 1: Instantaneous Electrical Power Calculation
In electrical power system simulations, determining real and reactive power requires multiplying instantaneous voltage and current signals. Wiring the voltage transducer output and current transducer output into a Product block generates the instantaneous power signal , which can then be averaged to calculate true active power.
Example 2: Aerodynamic Drag Velocity Squaring ()
In flight mechanics and automotive simulation, aerodynamic drag force depends on the square of relative airspeed (). Wiring the velocity signal into two terminals of a Product block computes , which is subsequently scaled by air density and drag coefficients in a Gain block to realistically model quadratic aerodynamic resistance.
Remarks & Best Practices
- Multi-Wire Input Architecture: Accepts any number of simultaneous input connections (
multiple: true), avoiding cascading two-input multipliers across complex diagrams. - Disconnected Port Fallback: Although the mathematical identity for multiplication is , this block outputs when completely disconnected to prevent unexpected non-zero signals on the canvas.
- Nonlinear Frequency Intermodulation: Multiplicative operations introduce frequency mixing (heterodyning), producing sum and difference frequencies () and harmonics.
- High Numerical Precision: Evaluated using 64-bit floating-point numbers (
f64), preserving precision across large dynamic ranges.
Related Components
- Divide: Computes the quotient of numerator and denominator signals ().
- Gain: Multiplies a signal by a constant scalar factor.
- Sum: Adds multiple input signals together.
- MathFunction: Evaluates mathematical operations such as powers, roots, and logarithms.