I need a javascript algorithm to calculate the position of logrithmic vertical grid lines for an arbitrary number of cycles that don't necessary start at .1 or 1 or 100 etc. I have one currently that will calculate starting at those values, but have a need for a scale that, for instance, starts at .2 to 2000. I've attached a picture that shows the problem. Here is my current algorithm.
[login to view URL] = [0.0,0.301,0.477,0.602,0.698,0.778,0.845,0.903,0.954,1.0];
[login to view URL] = function (min, max)
{
var aryLog = [login to view URL];
var numCycles = [login to view URL](min, max);
var aryPercent = [0];
for (var maxLastCycle = 0, i = 0; i < numCycles; i++)
{
for (var j = 1; j < [login to view URL]; j++)
{
var val = (maxLastCycle + (aryLog[j] / numCycles)).toFixed(4);
[login to view URL](parseFloat(val));
}
maxLastCycle = aryPercent[aryPercent.length-1];
}
aryPercent[aryPercent.length-1] = 1.0;
return aryPercent;
}
Which for 0.1 to 1000 produces.
[0,0.0753,0.1193,0.1505,0.1745,0.1945,0.2113,0.2258,0.2385,0.25,0.3253,0.3692,0.4005,0.4245,0.4445,0.4613,0.4758,0.4885,0.5,0.5753,0.6193,0.6505,0.6745,0.6945,0.7112,0.7258,0.7385,0.75,0.8253,0.8693,0.9005,0.9245,0.9445,0.9612,0.9758,0.9885,1]
The attached picture shows my grids over a tiff image of grid lines and they don't match, because the tiff image is calculated from 0.2 to 2.0. That is the problem.
hi this is aymen from tunisia mathematics student and j.s programmer i read your project's description it seems like an ordinary task for me so we can discuss details over chat.
best regards.
Hi,dear. I am a senior software developer. I have just checked your project report, I am able to perform this task with my developer team. I am looking forward to your proposal...
Hello Sir, We have gone through the details you have provided and we have already worked on a similar project before and can deliver as u have mentioned and would be pleased to work on this with you to deliver the results that you have expected and we have already worked on a similar project before and can deliver as u have mentioned
We are sure you will not be disappointed if you give us this opportunity. Our team is experienced, creative & efficient enough to get your job done well. We have an impeccable record and all our clients enjoy working with us, we are sure that you will too, our prices are cheapest in market.
[Removed for encouraging offsite communication which is against our Terms and Conditions.] for further discussion about the project
I am ready to discuss with you
with best Regards