mastermind@lemm.ee to Programmer Humor@lemmy.ml · 1 year agowhy not a,b or x,y?lemm.eeimagemessage-square97fedilinkarrow-up1672arrow-down143
arrow-up1629arrow-down1imagewhy not a,b or x,y?lemm.eemastermind@lemm.ee to Programmer Humor@lemmy.ml · 1 year agomessage-square97fedilink
minus-squarebasuramannen@discuss.tchncs.delinkfedilinkarrow-up4arrow-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-up10·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.