AsArgumentOfFunction

AsArgumentOfFunction(IMathElement)

使用此实例作为参数获取指定的函数

public IMathFunction AsArgumentOfFunction(IMathElement functionName)
参数类型描述
functionNameIMathElement函数名称

返回值

新创建的 IMathFunction 类型的数学元素

示例

示例:

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

另见


AsArgumentOfFunction(string)

使用此实例作为参数获取指定的函数

public IMathFunction AsArgumentOfFunction(string functionName)
参数类型描述
functionNameString函数名称

返回值

新创建的 IMathFunction 类型的数学元素

示例

示例:

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

另见


AsArgumentOfFunction(MathFunctionsOfOneArgument)

使用此实例作为参数获取指定的函数

public IMathFunction AsArgumentOfFunction(MathFunctionsOfOneArgument functionType)
参数类型描述
functionTypeMathFunctionsOfOneArgument常见的一元函数类型之一

返回值

新创建的 IMathFunction 类型的数学元素

示例

示例:

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

另见


AsArgumentOfFunction(MathFunctionsOfTwoArguments, IMathElement)

使用此实例作为参数和指定的附加参数获取指定的函数

public IMathFunction AsArgumentOfFunction(MathFunctionsOfTwoArguments functionType, 
    IMathElement additionalArgument)
参数类型描述
functionTypeMathFunctionsOfTwoArguments常见的二元函数类型之一: Log, Lim, Min, Max
additionalArgumentIMathElement取决于函数类型的附加参数

返回值

新创建的 IMathFunction 类型的数学元素

示例

示例:

[C#]
IMathElement functionArg = new MathematicalText("x");
IMathElement logarithmBase = new MathematicalText("5");
IMathFunction func = functionArg.AsArgumentOfFunction(MathFunctionsOfTwoArguments.Log, logarithmBase); // 返回 'x' 的以 '5' 为底的对数

另见


AsArgumentOfFunction(MathFunctionsOfTwoArguments, string)

使用此实例作为参数和指定的附加参数获取指定的函数

public IMathFunction AsArgumentOfFunction(MathFunctionsOfTwoArguments functionType, 
    string additionalArgument)
参数类型描述
functionTypeMathFunctionsOfTwoArguments常见的二元函数类型之一: Log, Lim, Min, Max
additionalArgumentString取决于函数类型的附加参数

返回值

新创建的 IMathFunction 类型的数学元素

示例

示例:

[C#]
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction(MathFunctionsOfTwoArguments.Log, "5"); // 返回 'x' 的以 '5' 为底的对数

另见