Comunque la formula è:
Generalizzata:codice:5 * 7 = 5 * 2^(7 & 1 << 0) + 5 * 2^(7 & 1 << 1) + 5 * 2^(7 & 1 << 2)
codice:0 <= i < round(log(b, 2)) a * b = Sommatoria(a * 2^(b & 1 << i))
Comunque la formula è:
Generalizzata:codice:5 * 7 = 5 * 2^(7 & 1 << 0) + 5 * 2^(7 & 1 << 1) + 5 * 2^(7 & 1 << 2)
codice:0 <= i < round(log(b, 2)) a * b = Sommatoria(a * 2^(b & 1 << i))