.. _auto_curve_create_from_expression: *COMPUTES KEY VALUES SUCH AS YIELD, NECKING ETC.* ================================================= Generates a new XY curve by evaluating a user-supplied C-syntax mathematical expression over a defined x-axis range and increment. Use this worker whenever you need a synthetic curve from a formula — e.g., a sine wave, polynomial, or any parameterized function — rather than measured data. When to use ----------- Classification: **process**. Tagged: ``c-syntax``, ``create``, ``curve``, ``expression``, ``formula``, ``intrinsic``, ``math``, ``synthetic``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Expression - expression - textarea - — - - C-syntax mathematical expression defining y as a function of x (and any named inputs); intrinsic functions such as sin, cos, min, max, maxg are supported — e.g., 'A*sin(B*x)'. Leave blank only if the expression is trivially zero. * - xmin - xmin - scalar - 0 - - Starting x-axis value for curve generation (dimensionless or in whatever unit x represents); defaults to 0. * - xmax - xmax - scalar - 1 - - Ending x-axis value for curve generation; must be greater than xmin. Defaults to 1. * - xinc - xinc - scalar - 0.1 - - Step size between consecutive x points; controls curve resolution — smaller values produce smoother curves. Defaults to 0.1. * - Inputs - inputs - keyvalue - — - - Key-value pairs of named scalar constants referenced inside the expression (e.g., A=2.5, B=3.14); omit if the expression contains no named parameters beyond x. Outputs ------- .. list-table:: :header-rows: 1 :widths: 20 20 20 20 * - Label - ID - Type - Description * - curve_create_from_expression_output_1 - curve_create_from_expression_output_1 - vector - Generated XY curve vector whose x-values span [xmin, xmax] at step xinc and whose y-values are the result of evaluating the supplied expression at each x point. Disciplines ----------- - 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=curve_create_from_expression `_ .. raw:: html

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