# math 586

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