Examples
Examples
Try the starting example
- JSON Edges to lace [ID,edge length m,measured lace m per edge m]
- [["A",1.5,4],["B",0.8,3.5]]
- Supplied join/end reserve (m)
- 0.3
- Available continuous lace per spool (m)
- 5
- Lace length per edge (m)
- [["A",6.3],["B",3.1]]
- Total lace (m)
- 9.4
- Minimum spool purchase by aggregate length
- 2
- Edges needing joins
- ["A"]
Try another scenario
- JSON Edges to lace [ID,edge length m,measured lace m per edge m]
- [["A",1.5,4],["B",0.8,3.5]]
- Supplied join/end reserve (m)
- 0.5
- Available continuous lace per spool (m)
- 5
- Lace length per edge (m)
- [["A",6.5],["B",3.3]]
- Total lace (m)
- 9.8
- Minimum spool purchase by aggregate length
- 2
- Edges needing joins
- ["A"]
Calculation method
Calculation method
Lace length per edge (m)
J([[r[0],r[1]*r[2]+b] for r in a])
Total lace (m)
sum(r[1]*r[2]+b for r in a)
Minimum spool purchase by aggregate length
ceil(sum(r[1]*r[2]+b for r in a)/c)
Edges needing joins
J([r[0] for r in a if r[1]*r[2]+b>c])
Symbols and units
- a
- JSON Edges to lace [ID,edge length m,measured lace m per edge m]
- b
- Supplied join/end reserve (m)
- c
- Available continuous lace per spool (m)
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Calculation steps and notation
sum(list) adds all entries in the list.
Assumptions & limits
Assumptions & limits
- Measured consumption for chosen stitch/lace pattern supplied. Aggregate spool bound does not optimize continuous-cut allocation; join IDs expose edges longer than spool. Supported limits: All numeric inputs must be finite. Only the explicitly described mathematical scenario is supported.
Are these inputs private?
These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.