Find Jobs
Hire Freelancers

Calculate logarithmic scales

$30-250 USD

Closed
Posted almost 7 years ago

$30-250 USD

Paid on delivery
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.
Project ID: 13903077

About the project

12 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
12 freelancers are bidding on average $193 USD for this job
User Avatar
Ok..So we need to make algorithm and JS fix so that grid can be divided in correct position like given image. looking forward to hear from you. Thanks
$166 USD in 4 days
5.0 (18 reviews)
5.9
5.9
User Avatar
A proposal has not yet been provided
$250 USD in 5 days
5.0 (34 reviews)
6.1
6.1
User Avatar
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.
$250 USD in 3 days
5.0 (2 reviews)
4.0
4.0
User Avatar
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...
$155 USD in 1 day
5.0 (2 reviews)
2.0
2.0
User Avatar
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
$207 USD in 6 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Urbandale, United States
5.0
11
Payment method verified
Member since Apr 5, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.