Class BaseExtensions
Contains extensions for base in number representations.
Inherited Members
Namespace: MathLib
Assembly: MathLib.dll
Syntax
public static class BaseExtensions
Methods
| Edit this page View SourceIsPurelyPeriodic(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
|
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. |