math 700

  1. Is floating point math broken?
  2. Fastest way to determine if an integer's square root is an integer
  3. Easy interview question got harder: given numbers 1..100, find the missing number(s)
  4. Determine Whether Two Date Ranges Overlap
  5. Designing function f(f(n)) == -n
  6. Understanding “randomness”
  7. What is JavaScript's highest integer value that a number can go to without losing precision?
  8. How do I determine whether my calculation of pi is accurate?
  9. Calculate distance between two latitude-longitude points? (Haversine formula)
  10. Integer division with remainder in JavaScript?
  11. Divide a number by 3 without using *, /, +, -, % operators
  12. How can I check for NaN in Python?
  13. How to sum array of numbers in Ruby?
  14. How to check if a number is a power of 2
  15. Difference between Math.Floor() and Math.Truncate()
  16. Fastest way to determine if an integer is between two integers (inclusive) with known sets of values
  17. Is there a standard sign function (signum, sgn) in C/C++?
  18. Fastest way to list all primes below N
  19. JavaScript math, round to two decimal places
  20. What is “entropy and information gain”?
  21. Calculate distance between 2 GPS coordinates
  22. In Python 2, what is the difference between '/' and '//' when used for division?
  23. How to round up the result of integer division?
  24. Why can't decimal numbers be represented exactly in binary?
  25. Too many 'if' statements?
  26. What is the standard way to add N seconds to datetime.time in Python?
  27. Evaluating a math expression given in string form
  28. How can I ensure that a division of integers is always rounded up?
  29. Calculating arithmetic mean (average) in Python
  30. The most efficient way to implement an integer based power function pow(int, int)
  31. How to determine if a point is in a 2D triangle?
  32. What are the most widely used C++ vector/matrix math/linear algebra libraries, and their cost and benefit tradeoffs?
  33. Why is division in Ruby returning an integer instead of decimal value?
  34. How does C compute sin() and other math functions?
  35. How to determine if a list of polygon points are in clockwise order?
  36. How can I round down a number in Javascript?
  37. How can I divide two integers to get a double?
  38. Mapping two integers to one, in a unique and deterministic way
  39. How do I calculate a point on a circle’s circumference?
  40. Convert a number range to another range, maintaining ratio
  41. Fast ceiling of an integer division in C / C++
  42. What are the mathematical/computational principles behind this game?
  43. JavaScript % (modulo) gives a negative result for negative numbers
  44. How can I specify the base for Math.log() in JavaScript?
  45. How to scale down a range of numbers with a known min and max value
  46. Is log(n!) = Θ(n·log(n))?
  47. Circle line-segment collision detection algorithm?
  48. Largest prime factor of a number
  49. Why prefer two's complement over sign-and-magnitude for signed numbers?
  50. Safest way to convert float to integer in python?