Does calculation methods in frontend.api implicitly define constraints? #1389
-
The calculation methods in frontend.api, like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In general yes, the calculations imply constraints. There are some edge cases though where we have optimized not to add constraints, e.g.
And in some cases we add several constraints, depending on the complexity of computation. For example for |
Beta Was this translation helpful? Give feedback.
In general yes, the calculations imply constraints. There are some edge cases though where we have optimized not to add constraints, e.g.
sum := api.Add(2,1)
, in this casesum
would be constant 3 and no constraint addeddiff := api.Sub(x,x)
is a constant 1 and no constraint is added.And in some…