6 lines
186 B
Mathematica
6 lines
186 B
Mathematica
|
|
function bound = powerbound(lb,ub,powers)
|
||
|
|
vars = find(powers);
|
||
|
|
bound = [1 1];
|
||
|
|
for k = 1:length(vars)
|
||
|
|
bound = intvmul(bound,intvpower([lb(vars(k)) ub(vars(k))],powers(vars(k))));
|
||
|
|
end
|