About 8,530,000 results
Open links in new tab
  1. How does the Math.max.apply() work? - Stack Overflow

    console.log(Math.max(list)); # NaN will not work, because max doesn't accept an array as input. There is another advantage, of using apply, you can choose your own context. The first …

  2. Math - mapping numbers - Stack Overflow

    Jul 19, 2019 · How do I map numbers, linearly, between a and b to go between c and d. That is, I want numbers between 2 and 6 to map to numbers between 10 and 20... but I need the …

  3. c - Mapping a numeric range onto another - Stack Overflow

    Let's forget the math and try to solve this intuitively. First, if we want to map input numbers in the range [0, x] to output range [0, y], we just need to scale by an appropriate amount. 0 goes to 0, …

  4. Finding the max value of a property in an array of objects

    FWIW my understanding is when you call apply on a function it executes the function with a specified value for this and a series of arguments specified as an array. The trick is that apply …

  5. How to map numbers in range <0;99> to range <-1.0;1.0>?

    Nov 11, 2010 · 16 So I have a function which always returns a number from range <0;99> (i.e. 0, 1, ... 99 - integers). What would be the best way to correctly map those numbers to range < …

  6. How do i use Math.max with an array of objects? - Stack Overflow

    That uses .map() to iterate through the elements of the array and return the value of the "x" property. That result array is then passed as the arguments to Math.max().

  7. math - How to map atan2 () to degrees 0-360 - Stack Overflow

    Aug 21, 2009 · How to map atan2 () to degrees 0-360 Asked 16 years, 3 months ago Modified 3 years, 2 months ago Viewed 202k times

  8. map function implementation in C - Stack Overflow

    Apr 2, 2020 · how can i implement a map function in C so I can use it in atmel studio for example the map function arduino C how can I use it in Atmel Studio x = analogRead(A0); y = map (x, 0 …

  9. math - Map linear data points to logarithmic data points - Stack …

    May 9, 2024 · This is different from Map a linear scale to a logarithmic one with both scales having variable min/max and Convert Linear scale to Logarithmic in that they are converting to …

  10. Javascript / jQuery - map a range of numbers to another range of ...

    May 25, 2012 · In other programming languages such as processing, there is a function which allows you to convert a number that falls within a range of numbers into a number within a …