math 603

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