I'm exercising in javascript calculations using a combination of maths and variables and i'm finding a difficulty on using the right way parentheses. For example i want to do the following calculation [(4,95/ans2)-4,5]*100 where ans2 is a cal...

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...

I am working on some calculations. By user input, calculations should take place and build a table with data. My first array, calcTable is working as intended, each row however, represents a month. In my final table, I want a row to represent a year....

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'm currently trying to calculate the percentage off -- or difference in percent between two prices on a web store. I also need to be able to loop through all items on the page that have the same classname applied. Inside the class name div ther...

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...

So I got a 3d system and some coordinates: Start coordinates (x, y, z) of a rocket (on the ground) Target coordinates (x, y, z) of the rockets target (also on the ground) I got some initialize values like: maximum_velocityZ = 0.5 maximum_resV...

I want to do a random calculation generator who give the answer. My problem is that I can't do the calculation. operating = Math.floor(Math.random() * 2) + 1; if (operating == 1) {operating = "+";} else {operating = "-";}; nb1 =...

©2020 All rights reserved.