3 lines
92 B
Mathematica
3 lines
92 B
Mathematica
|
function value = bernstein2(i, d, x)
|
||
|
value = nchoosek(d, i) .* x.^i .* (1-x).^(d-i);
|
||
|
end
|