classify_singularity

Function classify_singularity 

Source
pub fn classify_singularity(
    expr: &Expression,
    variable: &Symbol,
    point: &Expression,
) -> SingularityType
Expand description

Determine singularity type at a point

Uses pole order analysis and limit evaluation to classify singularities:

  • Pole: pole_order() > 0
  • Removable: limit exists and is finite
  • Essential: neither pole nor removable (e.g., exp(1/z) at z=0)

§Arguments

  • expr - The expression to analyze
  • variable - The variable for the singularity
  • point - The point to classify the singularity at

§Returns

The type of singularity: Removable, Pole(order), Essential, or Unknown