PiMath API
    Preparing search index...

    Interface IPiMathObject<T>

    Base contract of every PiMath value object: a displayable, duplicable mathematical entity.

    Note: construction (parse / from***) is intentionally NOT part of this contract — input shapes are class-specific and handled per class, not polymorphically. See .claude/specs/pimath-architecture.md.

    interface IPiMathObject<T> {
        display: string;
        tex: string;
        clone(): T;
        copy(value: T): T;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Implemented by

    Index
    display: string

    ASCIIMath rendering of the current state (terminal output, not chainable).

    tex: string

    LaTeX rendering of the current state (terminal output, not chainable).

    • Full duplicate of this instance, including display state (selected form and options set via as*** / with***). Distinct from copy.

      Returns T

    • Copy the mathematical state of another instance into this (display state is NOT transferred — the receiver keeps its own formatting). Entry point used when constructing/parsing from a same-type input. Distinct from clone. Classes without a real implementation throw NotImplementedError.

      Parameters

      • value: T

      Returns T