AsArgumentOfFunction

AsArgumentOfFunction(IMathElement)

Takes specified function using this instance as the argument

public IMathFunction AsArgumentOfFunction(IMathElement functionName)
ParameterTypeDescription
functionNameIMathElementFunction name

Return Value

New math element of type IMathFunction

Examples

Example:

[C#]
IMathElement functionName = new MathematicalText("sin");
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction(functionName);

See Also


AsArgumentOfFunction(string)

Takes specified function using this instance as the argument

public IMathFunction AsArgumentOfFunction(string functionName)
ParameterTypeDescription
functionNameStringFunction name

Return Value

New math element of type IMathFunction

Examples

Example:

[C#]
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction("cos");

See Also


AsArgumentOfFunction(MathFunctionsOfOneArgument)

Takes specified function using this instance as the argument

public IMathFunction AsArgumentOfFunction(MathFunctionsOfOneArgument functionType)
ParameterTypeDescription
functionTypeMathFunctionsOfOneArgumentOne of the common function type of one argument

Return Value

New math element of type IMathFunction

Examples

Example:

[C#]
IMathElement functionName = new MathematicalText("sin");
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction(functionName);

See Also


AsArgumentOfFunction(MathFunctionsOfTwoArguments, IMathElement)

Takes specified function using this instance as the argument and specified additional argument

public IMathFunction AsArgumentOfFunction(MathFunctionsOfTwoArguments functionType, 
    IMathElement additionalArgument)
ParameterTypeDescription
functionTypeMathFunctionsOfTwoArgumentsOne of the common function type of two arguments: Log, Lim, Min, Max
additionalArgumentIMathElementAdditional argument depending on the type of function

Return Value

New math element of type IMathFunction

Examples

Example:

[C#]
IMathElement functionArg = new MathematicalText("x");
IMathElement logarithmBase = new MathematicalText("5");
IMathFunction func = functionArg.AsArgumentOfFunction(MathFunctionsOfTwoArguments.Log, logarithmBase); // Returns the logarithm of 'x' to the base '5'

See Also


AsArgumentOfFunction(MathFunctionsOfTwoArguments, string)

Takes specified function using this instance as the argument and specified additional argument

public IMathFunction AsArgumentOfFunction(MathFunctionsOfTwoArguments functionType, 
    string additionalArgument)
ParameterTypeDescription
functionTypeMathFunctionsOfTwoArgumentsOne of the common function type of two arguments: Log, Lim, Min, Max
additionalArgumentStringAdditional argument depending on the type of function

Return Value

New math element of type IMathFunction

Examples

Example:

[C#]
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction(MathFunctionsOfTwoArguments.Log, "5"); // Returns the logarithm of 'x' to the base '5'

See Also