semantic.solver

Used to solve mathematical equations described as text.

class semantic.solver.MathService
parseEquation(input)

Solves the equation specified by the input string.

Args:
input (str): An equation, specified in words, containing some
combination of numbers, binary, and unary operations.
Returns:
The floating-point result of carrying out the computation.
semantic.solver.parseEquation(self, input)

Solves the equation specified by the input string. This is a convenience method which would only be used if you’d rather not initialize a NumberService object.

Args:
input (str): An equation, specified in words, containing some
combination of numbers, binary, and unary operations.
Returns:
The floating-point result of carrying out the computation.

Previous topic

semantic.numbers

Next topic

semantic.units

This Page