Let
To eliminate
The nonlinear term
Let
To eliminate
The nonlinear term
Skipping corners, not verifying correctness is necessary for productivity. There are multiple levels of correctness. Rubbish > Does Something > Reasonable > Justified > Correct > Omniscient optimal. The level of correctness needs to be observable.
Most of the time you programme more specific results than you actually need. Don't do this
Writing correct code the first time is economically unviable.
function levinson(R,L) | |
a = zeros(L,L) | |
P = zeros(1,L) | |
# for m = 1 | |
a[1,1] = -R[2]/R[1] | |
P[1] = R[1]*(1-a[1,1]^2) | |
# for m = 2,3,4,..L | |
for m = 2:L |