Divide

Divide(IMathElement)

Creates a fraction with this numerator and specified denominator

public IMathFraction Divide(IMathElement denominator)
ParameterTypeDescription
denominatorIMathElementDenominator

Return Value

new fraction

Examples

Example:

[C#]
IMathElement numerator = new MathematicalText("x");
IMathElement denumerator = new MathematicalText("y");
IMathFraction fraction = numerator.Divide(denumerator);

See Also


Divide(string)

Creates a fraction with this numerator and specified denominator

public IMathFraction Divide(string denominator)
ParameterTypeDescription
denominatorStringDenominator

Return Value

new fraction

Examples

Example:

[C#]
IMathElement numerator = new MathematicalText("x");
IMathFraction fraction = numerator.Divide("y");

See Also


Divide(IMathElement, MathFractionTypes)

Creates a fraction of the specified type with this numerator and specified denominator

public IMathFraction Divide(IMathElement denominator, MathFractionTypes fractionType)
ParameterTypeDescription
denominatorIMathElementDenominator
fractionTypeMathFractionTypesFraction type: Bar, NoBar, Skewed, Linear

Return Value

new fraction

Examples

Example:

[C#]
IMathElement numerator = new MathematicalText("x");
IMathElement denumerator = new MathematicalText("y");
IMathFraction fraction = numerator.Divide(denumerator, MathFractionTypes.Linear);

See Also


Divide(string, MathFractionTypes)

Creates a fraction of the specified type with this numerator and specified denominator

public IMathFraction Divide(string denominator, MathFractionTypes fractionType)
ParameterTypeDescription
denominatorStringDenominator
fractionTypeMathFractionTypesFraction type: Bar, NoBar, Skewed, Linear

Return Value

new fraction

Examples

Example:

[C#]
IMathElement numerator = new MathematicalText("x");
IMathFraction fraction = numerator.Divide("y", MathFractionTypes.Linear);

See Also