.. _auto_curves_subtract: *COMPUTE THE DIFFERENCE OF TWO CURVES BY SUBTRACTING THE Y-VALUES* ================================================================== Subtracts the y-values of a second curve from a first curve element-wise, producing a new difference curve on the same x-axis. Use this worker whenever you need to compute the point-wise difference between two time-history or XY curves. When to use ----------- Classification: **process**. Tagged: ``curve_math``, ``difference``, ``element-wise``, ``subtract``, ``transformations``, ``y-values``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Curve From Which The Values Are To Be Subtracted - curvefromwhichthevaluesaretobesubtracted - vector - — - - The minuend curve (XY/time-history vector) whose y-values will be reduced; accepts multiple curves when batch subtraction is needed — leave empty only if no base curve is available. * - Curve Whose Values Will Be Used To Subrtract - curvewhosevalueswillbeusedtosubrtract - vector - — - - The subtrahend curve (XY/time-history vector) whose y-values are subtracted from the first curve; must share the same x-axis domain as the minuend curve. Outputs ------- .. list-table:: :header-rows: 1 :widths: 20 20 20 20 * - Label - ID - Type - Description * - curves_subtract_output_1 - curves_subtract_output_1 - vector - Resulting difference curve (vector) containing the element-wise y-values of curve 1 minus curve 2, preserving the original x-axis of the minuend. Disciplines ----------- - data.curve.pair - data.curve.transform Runnable example ---------------- A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: `/api/workflow/example?id=curves_subtract `_ .. raw:: html

Auto-generated from transformation schema. Worker id: curves_subtract. Schema hash: 2fc439ce0264. Hand-curated docs in workerexamples/ override this page when present.