s o o o o o o o o o o o o o o o o o o o o o o o e   How can I calculate all possible paths, without using the same square twice, that a person could take to get from s to e?  I've created a grid array [[1,1]...[5,5]] but i dont know if that will...
I'd like to be able to calculate the length of the shortest sub-string required to achieve complete uniqueness.    Lets say I have a varying length list of 32 character UUIDs, but what I'd like to achieve is shortenening them during reference...
When the viewport is at a 1:1 width-to-height ratio (e.g. 1000x1000 resolution), I want a variable to be set to 0.22.  When the viewport is at a 2:1 width-to-height ratio (e.g. 2000x1000 resolution), I want that variable to be 0.33.  This should scal...
Not sure of the best way to ask this question other than:  I'm writing a function that will accept a variable called 'x'.  function doIt(x){   var y = someformula; //this is just a placeholder for the correct formula   return y; }   And h...
Ok, I have two positions in 3d space:  var fromX = 1,     fromY = 2,     fromZ = 3,     toX = 15,     toY = 16,     toZ = 17;   Then I need to calculate the current position, when someone/something is moving in a straight line from the from-coordinat...
I am working with xpages and i want to fill a combobox with Years starting with 2010. I tried to do it without success. Any idea of the formula item to fill to the combobox ? Thanks...
I have the following formula in Excel  =1-(B30^(EXP(D30-C30)))   where B30, D30 and C30 are cells.  I am converting it into JavaScript something like this  result = 1 - (Math.pow(Math.exp(D30-C30), B30)); console.log(result);   The result is differen...
I've written a huge page in JavaScript for a tournament I'm hosting on a game. I've gotten everything I really need worked out into arrays, but I want to add rounds. The whole script adjusts to tournament settings (for more in the future)...
I am trying to create a function to convert metres per second (m/s) to Beaufort scale in Javascript. I can do this using a series of if statements, but it I would much prefer to replace this with the formula to dynamically calculate this for me.   Th...
I'm using the quadraticCurveTo function in the HTML5 canvas. My main quip with it is it uses line interpolation when I just want to dictate the vertex. I already know what my starting and ending point is. As far as I know there is no function tha...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.