I am developing a frequency response simulator for linear circuits which should be able to plot graphs of Voltage x Frequency with the latest varying linearly, in octaves or in decades. The only parameters I give the simulator are which kind of scale should be used, the number of points and the starting and ending frequencies.
The linear case is pretty straightforward. I simply subtract the lower frequency from the upper frequency and divide by the number of points so that I have the increment that should be added to the frequency at each iteration.
However, I cannot seem to find a way to do the same for the other two scales. How should I proceed in order to determine which frequency values should be used at each case?