`The problem is that I have array with 5 numbers:  300 295    250     105  100  95  The result needed: the most numbers that have least difference specified by threshold. If you cant understand: in the example threshold is 5 and the winning set of num...`
`I am trying to expand an algebraic term.   (x+1)(x+1)/x => x + 2 + x^-1 (x+1)^3 => x^3 + 3x^2 + 3x + 1 (x^2*x)(x^2) => x^5   This is my attempt at it. I have tried a lot of ways trying to fix the problems below.   Problems:    Like terms sho...`
`The actual algorithm function is:  output[i] = ( (129 * input[i]) XOR input[i-1]) % 256 //input[-1] = 0   There are several solutions to this. The one that is usually done is along the lines of:  var output = [0, 129, 3, 129, 7, 129, 3, 129, 15, 129,...`
`I need to plot a graph in a canvas. But how can I use an algebra equation as input, and based on the equation, draw the curve, using javascript?  For example:  x2+5y=250  The equation plots a graph with both positive and negative values.     <!DOC...`
`I am working on a vanilla JavaScript game and I am using an array for stored heights on a y axis. My issue is that as a part of my height generation I want to create a biome with hills. This requires me to use parabolas so that I can properly generat...`
`var Answer = '2a + 5b' // downloaded from database var input = '5*b+ 2*a' // user input after calculating some algebraic expression.   if (Answer == input){     // tell student he solved the math problem correctly.  }   I want a funct...`
`I have this javascript code, and it is supposed to solve for x and y, but the result it gives is NaN.  function calculate(x,y){                 var firsttrans="1";                 var secondtrans="2";                 var a=parseInt(fi...`
`My high school algebra is failing me greatly...  I'm developing a mobile running application.  I'm using a timer counting in seconds and a GPS library that measures distance in meters.  I need to support both metric and imperial units.  I am...`
`I need an exponential equation with the following parameters:  When x = 0, y = 153. When x = 500, y = 53. Y should increase exponentially as X approaches 0 and should decrease exponentially when X approaches 500.  For some reason I can't remember...`