MathLib Docs MathLib Docs
MathLib Docs MathLib Docs

Search Results for

    Edit this page

    Class BaseExtensions

    Contains extensions for base in number representations.

    Inheritance
    object
    BaseExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: MathLib
    Assembly: MathLib.dll
    Syntax
    public static class BaseExtensions

    Methods

    | Edit this page View Source

    IsPurelyPeriodic(int, Q)

    Checks if the given rational number is purely periodic in the current base.

    Declaration
    public static bool IsPurelyPeriodic(this int base_, Q q)
    Parameters
    Type Name Description
    int base_

    The base.

    Q q

    The rational number to check.

    Returns
    Type Description
    bool

    true iff the rational number is purely periodic.

    | Edit this page View Source

    Pow(int, int)

    Raises the base to the specified exponent.

    Declaration
    public static Q Pow(this int base_, int exponent)
    Parameters
    Type Name Description
    int base_

    The base.

    int exponent

    The exponent.

    Returns
    Type Description
    Q

    The result of raising the base to the exponent.