I have written a javascript function for analyzing the biggest drop in an array. But one little issue is still there. As the max value, I always get max value from my hole array and not from my drop.  Example: Array: [100,90,80,120]  The biggest drop...
Let me be brief. I'm trying to calculate      alert((Math.pow(7,35))%71)   but it gives me 61, when the result must be 70. What's wrong?...
I'm exercising in javascript and i've made this script in order to calculate the sum of 2 variables and then use this sum in a third equation! any thoughts on how to make this work will be very useful!    <form name="Calcultor" Met...
I have the long value bits declared like so:  long bits = len*8L; (304)  System.out.println(bits); This outputs as 304  If I use the long name bits like so I get 0 & 0 respectively.  System.out.println(bits>>(4*8)); System.out.println(0xFF&...
I have the coordinates of 2 points A1 (x1,y1) and A2 (x2,y2) and a distance d. I need to find the coordinates of point A3 that is the distance d from point A2 on the linear graph defined by A1 and A2. How can i do that with JavaScript? similar to htt...
I am getting an error when trying to calculate a number that uses a number from a previous calculation.     1st Calculation: Ending Depth - Starting Depth = Footage.      2nd Calculation: Footage / Rate of Penetration = Expected Hours to   Drill.   T...
I have 5 input fields (range sliders) and I'm trying to return a result when any of the input values changes.  The problem is "value4" is used 2 times in the equation and this is causing the problem. If I change "value4" my result...
I have a problem that I have input range so I used for discount to my total price, and when I change the input range, I also want to change the total calculation because the input range is the percentage of the initial total. So on change the input r...
I've been trying to find out an efficient method of finding multiple numbers from an array that add up to a given number. In this instance I'm trying to find 3 numbers that total a target number.  I've got a basic working example below bu...
I'm exercising in calculations with variables using javascript and i can't figure out how to use superscripts in variables. With some help Javascript calculations holding variables i learned how to do calculations in general but my new questi...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.