AngouriMath

Navigation

← Back to list of members

ExpandOnTwoArguments​(AngouriMath.​Entity,​AngouriMath.​Entity,​System.​Func{AngouriMath.​Entity,​AngouriMath.​Entity,​AngouriMath.​Entity},​System.​Func{AngouriMath.​Entity,​AngouriMath.​Entity,​AngouriMath.​Entity,​AngouriMath.​Entity},​System.​Boolean,​System.​Boolean,​System.​Boolean)

 Method (no overloads)

Summary

For two-argument nodes
Used in InnerSimplify and InnerEval
Allows to avoid looking over all the combinations with piecewise, tensor, finiteset

Parameter "left"

Left argument

Parameter "right"

Right argument

Parameter "operation"

That is the main switch for the types. It must return null if no suitable couple of types is found,
so that the method could move on to the matrix choice

Parameter "defaultCtor"

If no suitable case in switch found, it should return the default node, for example, for sum it would be
(a, b) => a + b

Parameter "isExact"

Check if the number is exact and, if so, return it.

Parameter "propagateSet"

Set operations should not be applied on all pairs of elements when it cannot be simplified.

Parameter "settlesNaN"

Whether operation is asked about a NaN operand instead of the
result being NaN outright. A logical connective can settle one -- false and u is false whatever u is -- and arithmetic cannot, so this is off by default:
NaN * 0 must not become 0 just because a rule for a zero factor exists.
https://github.com/asc-community/AngouriMath/issues/880

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1953 pages online