FractionFromSternBrocotSystem Method Mathos Core Library 1.0.5.1 (changeset 39720)
This documentation is compiled for the latest release of Mathos Core Library
Convert a fraction in Stern-Brocot system to a fraction.

Namespace: Mathos.Arithmetic.Fractions
Assembly: Mathos (in Mathos.dll) Version: 1.0.5.1 (1.0.5.1)
Syntax

public static Fraction FromSternBrocotSystem(
	string sternBrocotRepresentation
)

Parameters

sternBrocotRepresentation
Type: SystemString
Enter a string that contains L's and R's. It can be generated from a fraction by ToSternBrocotSystem method.

Return Value

Type: Fraction
Remarks

Only works for upper case L and R. This method is case sensetive.
Examples

LRRL will be 5/7
See Also

Reference