FractionToCondensedSternBrocotSystem Method Mathos Core Library 1.0.5.1 (changeset 39720)
This documentation is compiled for the latest release of Mathos Core Library
This method will convert a SternBrocot represented fraction, eg. LLRRLR and convert it to a condensed form.

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

public static string ToCondensedSternBrocotSystem(
	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: String
For example, LLRRRL will return L(2)R(3)L(1)
See Also

Reference