mastermind@lemm.ee to Programmer Humor@lemmy.ml · 1 year agowhy not a,b or x,y?lemm.eeimagemessage-square96fedilinkarrow-up1651arrow-down142
arrow-up1609arrow-down1imagewhy not a,b or x,y?lemm.eemastermind@lemm.ee to Programmer Humor@lemmy.ml · 1 year agomessage-square96fedilink
minus-squarebasuramannen@discuss.tchncs.delinkfedilinkarrow-up2arrow-down1·1 year agoI don’t like i and j since they are commonly used for imaginary numbers. I like to start on n. Probably because I do DSP.
minus-square𝜏au@discuss.tchncs.delinkfedilinkarrow-up9·1 year agoBut n is commonly used for a total number. Using an index i to iterate over a number n of elements just makes more sense IMO.
I don’t like i and j since they are commonly used for imaginary numbers. I like to start on n. Probably because I do DSP.
But n is commonly used for a total number. Using an index i to iterate over a number n of elements just makes more sense IMO.