Solves math expressions using the Knetiv/govaluate Golang package.
An example workflow of using the container solve container to solve basic math.
id: solver
functions:
- id: solve-math-expression
image: vorteil/solve:v2
states:
- id: solve
type: action
action:
function: solve-math-expression
input:
x: "10*3"
Expects input in the following format where x contains the math expression to solve:
input:
x: "10*3"
Returns output in the following format:
{
"return": 30
}
Content type
Image
Digest
Size
2 MB
Last updated
about 5 years ago
docker pull vorteil/solve