_Singularities
it.grypho.scala.leonardo.domain._Singularities
case class _Singularities(e: _Expression, v: _Variable) extends _Expression
singularities(e, v) — the isolated singularities of a rational e.
Three outcomes, deliberately distinguishable:
- some — a
2×nmatrix, locations in the first row and pole order in the second, with0marking a removable singularity. Two rows rather than one because the order is the part the Laurent series actually needs — it is the length of the principal part — and a bare list of locations would lose it. - provably none —
_Bool(false), the empty set. This follows the inequality solver, which renders an empty solution set the same way, and_Matrixcannot be2×0in any case. - cannot enumerate — stays symbolic, which is everything that is not a numeric rational function. Collapsing this into "none" would turn "I do not know" into a confident and wrong answer.
Varying the result type by cardinality is the convention equation._Solve already uses: one solution is an equation, several are a matrix, none stays symbolic.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait _Expressionclass Objecttrait Matchableclass Any
Members list
In this article