Function approximateRadical

  • Approximate a value with a radical expression.

    Parameters

    • value: number

      Value to approximate.

    • maxIndex: number = 5

      Maximum index of the radical. 2 means square root, 3 means cube root, etc.

    • maxHeight: number = 50000

      Maximum Benedetti height of the radicand in the approximation.

    Returns {
        index: number;
        radicand: Fraction;
    }

    Object with index of the radical and the radicand. Result is "index'th root or radicand".