HUB
Sign inSign up

vorteil/solve

By vorteil

•Updated over 5 years ago

Image
0

1.5K

vorteil/solve repository overview

⁠Solve

Solves math expressions using the Knetiv/govaluate⁠ Golang package.

⁠Direktiv

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"

⁠Input

Expects input in the following format where x contains the math expression to solve:

input:
	x: "10*3"

⁠Output

Returns output in the following format:

{
  "return": 30
}
Tag summary
Recent tags
Content type
Image
Digest
Size
2 MB
Last updated
over 5 years ago
docker pull vorteil/solve:latest