mymesh.implicit.diff#

mymesh.implicit.diff(f1, f2)[source]#

Boolean difference of two values or sets of values. Negative values are assumed to be “inside”. An R-function rMax() maximum is used to obtain a continuously differentiable output. Note that this operation is not symmetric so the order of inputs matters.

This is the generic interface to diffv(), difff(), diffs()

Parameters:
  • f1 (scalar, np.ndarray, sp.Basic, or callable) – Value(s) of the first function

  • f2 (scalar, np.ndarray, sp.Basic, or callable) – Value(s) of the second function

Returns:

Diff – Difference of the two sets of values

Return type:

scalar, np.ndarray, sp.Basic, or callable