calculateResultWith

Parses an arithmetic expression from the given string using the default context, then return its result.

Any unknown alphanumeric token that is not a number, an element or an input variable is considered illegal.

Return

the result of the expression

Parameters

expression

the arithmetic expression to parse

inputVars

the input variables that are used in the expression

See also


@JvmName(name = "calculateResultWithExt")
fun String.calculateResultWith(vararg inputVars: Pair<String, Number>): KthParsingAndCalculationResult

Parses an arithmetic expression from the receiving string using the default context, then return its result.

Any unknown alphanumeric token that is not a number, an element or an input variable is considered illegal.

Return

the result of the expression

Parameters

inputVars

the input variables that are used in the expression

See also