Publishing and evaluating Algebra results

Result and publishing

Choose the result in View formula. In Publish result… enter a free New Dataset ID and a Dataset label. Publish checks the source revisions again and tries to create the Function. Cancel returns to the formula. Wait for the outcome before opening the ID from the Dataset tab. A History entry and a published Function have different identities.

Evaluate samples…

Choose a single operand that is active and displayed. Evaluate samples… becomes enabled if its definition offers the requested numerical evaluation. Enter the coordinates in X in the unit of the independent variable. Evaluate computes the response and shows the qualifications, for example inside or outside the training domain when provided. For a piecewise Function consider excluded ends and holes. Publish the Dataset or the Graph only when the action appears with a valid result.

Recipe with the P012 teaching operands

In Python Scripts choose File → Import .py… and import examples/mathematics_algebra/create_operands.py from the P012 distribution. Set Scope to session, Script ID to create_operands and add MATHEMATICAL_MODEL_PROVIDER_API_v1@1;NUMERIC_API_v1@1 in Additional required APIs. If the field is hidden, use View → Additional required APIs. Save and start a Job for each operand, A and B. Check the terminal, the IDs and the revisions before going back to Algebra. The recipes use canonical construction and publishing. If the Job fails on the provider profile, go back to the diagnostics of 214.

For a Script registered in Python or Octave the APIs enabled by the Script Bridge for that context apply. The commands of the viewer menu are operations of the Host service. To choose a dynamic operation use the list actually available for the provider and the operands, with the related scientific references.

Slopes and derivatives

Evaluate sampled slopes uses pairs of adjacent samples and computes the difference quotient over their interval. Use X in strictly increasing order. Evaluate model tangents, where available for the fit, computes the analytical derivative at the single X. It can keep the request order and repetitions. With x^2, the secant from 0 to 1 has slope 1 and the tangent at X=1 has slope 2.

Evaluate ordinary derivative depends on the declaration of the provider and on differentiability at the point. A hole, a jump or an open boundary can leave the derivative without a value. For a continuous piecewise Function consider both slopes at the boundary before attributing a single derivative.