Gang Of Coders
Home
About Us
Contact Us
All Math Solutions on Gang of Coders
Total of 382 Math Solutions
Numerically stable way to compute sqrt((b²*c²) / (1-c²)) for c in [-1, 1]
C++
Math
Floating Point
Numerical Stability
How does this bitwise operation check for a power of 2?
C
Math
Bit Manipulation
C++ fixed point library?
C++
Math
Fixed Point
Calculate largest inscribed rectangle in a rotated rectangle
Algorithm
Math
Language Agnostic
Geometry
Default php function that turns negative numbers in 0
Php
Math
Variables
Numbers
Two Rectangles intersection
Algorithm
Math
Pseudocode
Shapes
Fixed point math in c#?
C#
Math
Fixed Point
Is double Multiplication Broken in .NET?
C#
.Net
Math
Round *UP* to the nearest 100 in SQL Server
Sql Server
Math
Rounding
Determine which side of a line a point lies
Math
Geometry
Line
Point
How did Python implement the built-in function pow()?
Python
Algorithm
Math
All Possible Combinations of a list of Values
C#
Algorithm
Math
Combinations
How to round to the next largest number?
Javascript
Math
Is there a short-hand for nth root of x in Python?
Python
Math
Operators
Square Root
How to efficiently compute average on the fly (moving average)?
Algorithm
Math
Average
Moving Average
Rotate point about another point in degrees python
Python
Math
Degrees
Fitting polynomials to data
Math
Statistics
Exponential Moving Average Sampled at Varying Times
Math
Signal Processing
Average
Digital Filter
Cumulative Normal Distribution Function in C/C++
C++
C
Math
Statistics
Distribution
How to determine if a list of polygon points are in clockwise order?
Math
Geometry
Polygon
Computational Geometry
C - How to implement Set data structure?
C
Algorithm
Math
Data Structures
Set
Curve text on existing circle
Iphone
Cocoa Touch
Math
Quartz Graphics
Quartz 2d
How to expand and compute log(a + b)?
Math
Logarithm
Most efficient/elegant way to clip a number?
C++
Algorithm
Math
Logic
How to determine if a point is in a 2D triangle?
Algorithm
Math
Geometry
Why can't decimal numbers be represented exactly in binary?
Math
Floating Point
correcting fisheye distortion programmatically
Math
Graphics
Geometry
Projection
2D Euclidean vector rotations
C++
Math
Vector
Rotation
Trigonometry
Divide by 10 using bit shifts?
Math
Bit
Micro Optimization
Low Level
Integer Division
math/algorithm Fit image to screen retain aspect ratio
Algorithm
Image
Math
Graphics
Resize
Method for evaluating math expressions in Java
Java
Math
Formula
Convert 2:1 equirectangular panorama to cube map
Javascript
Math
three.js
How can I remove the decimal part from JavaScript number?
Javascript
Math
Decimal
Number Formatting
Division
Rotate a point by another point in 2D
C#
Math
Rotation
Angle
Is there a calculator with LaTeX-syntax?
Latex
Math
Calculator
Runge-Kutta (RK4) integration for game physics
Math
Integration
Physics
How can I write a power function myself?
C++
Math
Floating Point
Obtain Latitude and Longitude from a GeoTIFF File
Python
Math
Geolocation
Tiff
Gdal
In Java how do you convert a decimal number to base 36?
Java
Math
Decimal
Easy interview question got harder: given numbers 1..100, find the missing number(s) given exactly k are missing
Arrays
Algorithm
Math
Always return positive value
C#
Math
How to find remainder of a division in Ruby?
Ruby
Math
JS how to find the greatest common divisor
Javascript
Math
Greatest Common-Divisor
Different results using the same maths in different browsers
Javascript
Math
V8
Spidermonkey
Associativity math: (a + b) + c != a + (b + c)
C#
.Net
Math
Numeric
How do you find a point at a given perpendicular distance from a line?
Algorithm
Math
Graphics
Geometry
Coordinates
Mapping N-dimensional value to a point on Hilbert curve
Algorithm
Math
Hilbert Curve
Dimension Reduction
Good algorithm for finding the diameter of a (sparse) graph?
Algorithm
Math
Graph Theory
Is there any advantage to using pow(x,2) instead of x*x, with x double?
C++
Math
Floating Point
Inverse Cosine in Python
Python
Math
Trigonometry
Math operations from string
Python
String
Math
What is difference between tf.truncated_normal and tf.random_normal?
Math
Machine Learning
Tensorflow
Why is division in Ruby returning an integer instead of decimal value?
Ruby
Math
Floating Point
Division
Integer Division
Fitting largest circle in free area in image with distributed particle
Matlab
Math
Image Processing
Geometry
Particles
How do I calculate a trendline for a graph?
C#
Math
Graph
What does a circled plus mean?
Math
Cryptography
Matrix
making a variable value positive
Javascript
Math
How to calculate mean, median, mode and range from a set of numbers
Java
Math
Probability
How to divide numbers without remainder in PHP?
Php
Math
Division
Shortest command to calculate the sum of a column of output on Unix?
Unix
Math
Shell
Ksh
Does casting to an int after std::floor guarantee the right result?
C++
Math
Floor
What are the chances that two messages have the same MD5 digest and the same SHA1 digest?
Math
Md5
Sha1
Digest
Hash Collision
Using fourier analysis for time series prediction
Python
Math
Matlab
Is there a Math API for Pow(decimal, decimal)
C#
.Net
Math
Decimal
How to round a integer to the close hundred?
C#
.Net
Math
Why do "Not a Number" values equal True when cast as boolean in Python/Numpy?
Python
Math
Numpy
Convert Linear scale to Logarithmic
Math
Logarithm
How does C compute sin() and other math functions?
C
Math
Trigonometry
How to perform an integer division, and separately get the remainder, in JavaScript?
Javascript
Math
Modulo
Integer Division
The most efficient way to implement an integer based power function pow(int, int)
C
Algorithm
Math
Exponentiation
Mapping two integers to one, in a unique and deterministic way
Algorithm
Mapping
Integer
Deterministic
Math
Generate a random point within a circle (uniformly)
Math
Random
Geometry
Probability
What are the most widely used C++ vector/matrix math/linear algebra libraries, and their cost and benefit tradeoffs?
C++
Math
Matrix
Linear Algebra
Too many 'if' statements?
If Statement
Math
Formula
Is there a math nCr function in python?
Python
Function
Math
Safest way to convert float to integer in python?
Python
Math
Integer
Python 2.x
What is the behavior of integer division?
C
Math
C99
C89
Integer Division
How to scale down a range of numbers with a known min and max value
Math
Range
Scaling
Max
Minimum
How can I round down a number in Javascript?
Javascript
Math
Rounding
Calculate distance between two latitude-longitude points? (Haversine formula)
Algorithm
Math
Maps
Latitude Longitude
Haversine
Is log(n!) = Θ(n·log(n))?
Algorithm
Math
Recursion
Complexity Theory
Big O
How can I ensure that a division of integers is always rounded up?
C#
Math
How do I calculate a point on a circle’s circumference?
Algorithm
Math
Trigonometry
What is JavaScript's highest integer value that a number can go to without losing precision?
Javascript
Math
Browser
Cross Browser
Rounding BigDecimal to *always* have two decimal places
Java
Math
Bigdecimal
Rounding
Why does Python's hash of infinity have the digits of π?
Python
Math
Hash
Floating Point
Pi
How to make rounded percentages add up to 100%
Algorithm
Math
Rounding
Percentage
Mod of negative number is melting my brain
C#
Math
Modulo
Why prefer two's complement over sign-and-magnitude for signed numbers?
Binary
Math
Twos Complement
Negative Number
Internal Representation
Remove insignificant trailing zeros from a number?
Javascript
Regex
Math
Numbers
Circle line-segment collision detection algorithm?
Algorithm
Math
Line
Collision Detection
Geometry
How can I specify the base for Math.log() in JavaScript?
Javascript
Math
Logarithm
Why use softmax as opposed to standard normalization?
Math
Neural Network
Softmax
How do I calculate the normal vector of a line segment?
Math
Geometry
Vector
What are the mathematical/computational principles behind this game?
Algorithm
Math
Pseudocode
How does the HyperLogLog algorithm work?
Database
Algorithm
Math
Data Structures
Hyperloglog
Is floating point math broken?
Math
Language Agnostic
Floating Point
Floating Accuracy
numpy max vs amax vs maximum
Python
Numpy
Math
Max
Algorithm to find Largest prime factor of a number
Algorithm
Math
Prime Factoring
How to test if a double is an integer
Java
Math
Designing function f(f(n)) == -n
Math
Integer
Understanding "randomness"
Math
Language Agnostic
Random
What does gcc's ffast-math actually do?
Performance
Math
Gcc
Floating Point
Fast Math
What's the difference between “mod” and “remainder”?
C
Math
Operators
Unique (non-repeating) random numbers in O(1)?
Algorithm
Math
Random
Language Agnostic
How to round a number to significant figures in Python
Python
Math
Rounding
Significant Digits
Why do Python's math.ceil() and math.floor() operations return floats instead of integers?
Python
Math
Mod in Java produces negative numbers
Java
Math
Mod
Calculate the center point of multiple latitude/longitude coordinate pairs
Math
Latitude Longitude
Geo
How to transform black into any given color using only CSS filters
Javascript
Css
Math
Algebra
Css Filters
Sort points in clockwise order?
Algorithm
Math
Lua
Geometry
Computational Geometry
Why must a nonlinear activation function be used in a backpropagation neural network?
Math
Machine Learning
Neural Network
Deep Learning
How do I determine whether my calculation of pi is accurate?
Algorithm
Math
Language Agnostic
Pi
What is the C++ function to raise a number to a power?
C++
Math
What is the method for converting radians to degrees?
Algorithm
Math
Trigonometry
Least common multiple for 3 or more numbers
Algorithm
Math
Lcm
Evenly distributing n points on a sphere
Python
Algorithm
Math
Geometry
Uniform
Javascript: Round up to the next multiple of 5
Javascript
Math
Rounding
Java Round up Any Number
Java
Math
Int
Rounding
How do you calculate the average of a set of circular data?
Algorithm
Math
Geometry
How to convert latitude or longitude to meters?
Math
Geolocation
Geo
How to create the most compact mapping n → isprime(n) up to a limit N?
Algorithm
Math
Data Structures
Primes
How to tell whether a point is to the right or left side of a line
C#
Math
Geometry
Convex Hull
How to get mathemical PI constant in Swift
Swift
Math
Darwin
Performance of Java matrix math libraries?
Java
Math
Matrix
Performance
Divide a number by 3 without using *, /, +, -, % operators
C
Math
Division
Divide
Why does long long n = 2000*2000*2000*2000; overflow?
C++
Math
Types
Literals
Integer Overflow
How to check if a number is a power of 2
C#
Algorithm
Math
Algorithm to detect intersection of two rectangles?
Algorithm
Math
Graphics
Geometry
Separating Axis-Theorem
Evaluating a mathematical expression in a string
Python
Math
How can I get a count of the total number of digits in a number?
C#
Math
Numbers
Why does C++ rand() seem to generate only numbers of the same order of magnitude?
C++
C
Math
Random
How to convert number to words in java
Java
Math
Numbers
Jscience
Possible Loss of Fraction
C#
Math
Why does the division get rounded to an integer?
Python
Math
Python 2.x
How do I compute derivative using Numpy?
Python
Math
Numpy
How can I check if two segments intersect?
Python
Math
Geometry
Is it safe to assume a GUID will always be unique?
Math
Unique
Guid
Probability
Collision
Math.random() explanation
Java
Math
Truncate Two decimal places without rounding
C#
Math
Rounding
Converting bytes to megabytes
Math
Memory
Terminology
Units of-Measurement
Why isn't `int pow(int base, int exponent)` in the standard C++ libraries?
C++
Math
Integer
Standard Library
Pow
How to sum array of numbers in Ruby?
Ruby
Arrays
Math
Sum
What is the best way to get all the divisors of a number?
Python
Algorithm
Math
How can I use numpy.correlate to do autocorrelation?
Python
Math
Numpy
Numerical Methods
How do I calculate r-squared using Python and Numpy?
Python
Math
Statistics
Numpy
Curve Fitting
Positive Number to Negative Number in JavaScript?
Javascript
Math
Why does Python give the "wrong" answer for square root? What is integer division in Python 2?
Python
Math
Python 2.x
Sqrt
How to map atan2() to degrees 0-360
Math
Quartz 2d
Atan2
Make a number a percentage
Javascript
Math
Finding quaternion representing the rotation from one vector to another
Math
Vector
Quaternions
Why does Math.floor return a double?
Java
Math
Types
How to calculate an angle from three points?
Algorithm
Math
Geometry
Fast permutation -> number -> permutation mapping algorithms
Algorithm
Math
Permutation
Combinatorics
What's the best practice to round a float to 2 decimals?
Java
Android
Math
How can I get sin, cos, and tan to use degrees instead of radians?
Javascript
Math
Javascript: formatting a rounded number to N decimals
Javascript
Math
Rounding
Decimal Point
Java rounding up to an int using Math.ceil
Java
Math
Undefined reference to `sin`
C
Math
Linker Errors
Undefined Reference
less than 10 add 0 to number
Javascript
Jquery
Math
Is mathematics necessary for programming?
Math
Why does Decimal.Divide(int, int) work, but not (int / int)?
C#
Math
Int
Divide
How do I round to the nearest 0.5?
C#
Math
Function
Why does Math.Floor(Double) return a value of type Double?
C#
Math
Floor
How Does Modulus Divison Work
Language Agnostic
Math
Modulo
Division
How to get whole and decimal part of a number?
Php
Math
How to round up integer division and have int result in Java?
Java
Math
Types
Formatting
Evaluating string "3*(4+2)" yield int 18
C#
String
Math
Numeric
Evaluate
Ruby: Change negative number to positive number?
Ruby
Math
Numbers
What is the difference between '/' and '//' when used for division?
Python
Math
Syntax
Operators
Floor Division
How can I check if multiplying two numbers in Java will cause an overflow?
Java
Math
Long Integer
Integer Overflow
Math - mapping numbers
Math
Numbers
Mapping
Interpolation
Linear Algebra
How do I get whole and fractional parts from double in JSP/Java?
Java
Math
Jsp
How to force JS to do math instead of putting two strings together
Javascript
String
Math
Addition
How do Trigonometric functions work?
Algorithm
Math
Trigonometry
How to fix GCC compilation error when compiling >2 GB of code?
C++
Math
Gcc
Compiler Errors
Code Size
How to pad a string with leading zeros in Python 3
Python
Python 3.x
Math
Rounding
Calculating distance between two points, using latitude longitude?
Java
Math
Latitude Longitude
What is the fastest factorial function in JavaScript?
Javascript
Math
Factorial
How can you determine a point is between two other points on a line segment?
Python
Math
Geometry
Is Big O(logn) log base e?
Math
Binary Tree
Complexity Theory
Big O
JavaScript exponents
Javascript
Math
Mapping a numeric range onto another
C
Math
Arduino
How to perform division in Go
Math
Go
Floating Point
Integer Division
What is the fastest way to compute sin and cos together?
C#
C++
C
Algorithm
Math
Calculating a 2D Vector's Cross Product
Language Agnostic
Math
Vector
2d
Best way to represent a fraction in Java?
Java
Math
Fractions
Base 62 conversion
Python
Math
Base62
Unfamiliar symbol in algorithm: what does ∀ mean?
Algorithm
Math
Symbols
Rounding numbers to 2 digits after comma
Javascript
Math
Rounding
Javascript Math Object Methods - negatives to zero
Javascript
Math
Negative Number
Division of integers in Java
Java
Math
Floating Point
Long Integer
Println
Calculating distance between two points (Latitude, Longitude)
Sql
Sql Server
Tsql
Math
Sql Server-2008-R2
minimum double value in C/C++
C++
C
Math
Check if a number is a perfect square
Python
Math
Perfect Square
JavaScript math, round to two decimal places
Javascript
Math
JavaScript: Round to a number of decimal places, but strip extra zeros
Javascript
Math
Floating Point
Rounding
NumPy: Logarithm with base n
Python
Math
Numpy
Logarithm
What is the ideal growth rate for a dynamically allocated array?
Arrays
Math
Vector
Arraylist
Dynamic Arrays
Arbitrary-precision arithmetic Explanation
Math
Biginteger
Bignum
Evaluating a string as a mathematical expression in JavaScript
Javascript
String
Math
Numbers
How does java do modulus calculations with negative numbers?
Java
Math
Modulo
Negative Number
Calculating the position of points in a circle
Algorithm
Math
Trigonometry
Geometry
How to use nan and inf in C?
C
Math
Nan
Infinity
Python round up integer to next hundred
Python
Math
Rounding
Round float to x decimals?
Python
Math
Rounding
Direct way of computing clockwise angle between 2 vectors
C++
Math
Angle
What's the algorithm to calculate aspect ratio?
Javascript
Algorithm
Math
Crop
Aspect Ratio
What is the standard way to add N seconds to datetime.time in Python?
Python
Datetime
Time
Math
Difference between Math.Floor() and Math.Truncate()
.Net
Math
Why is the Fibonacci series used in agile planning poker?
Math
Statistics
Agile
Agile Project-Management
Why does i = i + i give me 0?
Java
Math
Variable Assignment
Is there a standard sign function (signum, sgn) in C/C++?
C++
C
Math
What's a good algorithm to determine if an input is a perfect square?
Algorithm
Math
Perfect Square
What is O(log* N)?
Algorithm
Math
Complexity Theory
Logarithm
Iterated Logarithm
Rounding integer division (instead of truncating)
C
Math
Int
Rounding
Integer Division
How to round up value C# to the nearest integer?
C#
Math
Rounding
How can I calculate divide and modulo for integers in C#?
C#
Math
Operators
Division
Modulo
JavaScript: Calculate the nth root of a number
Algorithm
Math
Javascript
Calculating powers of integers
Java
Math
JavaScript Number Split into individual digits
Javascript
Math
Ruby factorial function
Ruby
Math
Factorial
How to make scipy.interpolate give an extrapolated result beyond the input range?
Python
Math
Numpy
Scipy
How can I convert radians to degrees with Python?
Python
Math
Float sum with javascript
Javascript
Math
Floating Point
How do I combine complex polygons?
Math
Geometry
Union
Inverting a 4x4 matrix
C++
Algorithm
Math
Matrix
Matrix Inverse
Is a Markov chain the same as a finite state machine?
Math
Statistics
State Machine
Fsm
Markov Chains
Is there a good math/stats library for Scala?
Scala
Math
Statistics
Choosing an attractive linear scale for a graph's Y Axis
Algorithm
Math
Graph
Why does corrcoef return a matrix?
Python
Math
Numpy
Unsupervised clustering with unknown number of clusters
Algorithm
Math
Artificial Intelligence
Machine Learning
Cluster Analysis
Why does FFT produce complex numbers instead of real numbers?
Algorithm
Math
Audio
Signal Processing
Fft
Algorithm for finding similar images
Algorithm
Math
Image Comparison
Algorithms based on number base systems?
Algorithm
Math
Data Structures
Numbers
Number Systems
How does photoshop blend two images together?
C++
C
Math
Image Processing
Photoshop
How do I determine the number of digits of an integer in C?
C
Math
When I divide numbers in clojure I get a fraction , how do I get the decimal?
Math
Clojure
Floating Point
Numbers
How to update the bias in neural network backpropagation?
Machine Learning
Math
Neural Network
Position of the sun given time of day, latitude and longitude
R
Math
Geometry
Astronomy
Azimuth
Confusion between C++ and OpenGL matrix order (row-major vs column-major)
C++
Math
Opengl
Matrix
How to resolve a Java Rounding Double issue
Java
Math
Rounding
What does the ^ (caret) symbol do in JavaScript?
Javascript
Math
Operators
How to add two NSNumber objects?
Objective C
Math
Nsnumber
How do I find the distance between two points?
Python
Math
What does the ^ (XOR) operator do?
Math
Operators
Calculate distance between 2 GPS coordinates
Math
Geolocation
Geometry
Latitude Longitude
Geography
Do not want scientific notation on plot axis
Math
R
Graphics
Infinite integer in Python
Python
Python 3.x
Math
Infinity
How is the square root function implemented?
Function
Math
Square Root
In C# integer arithmetic, does a/b/c always equal a/(b*c)?
C#
Math
Integer
Integer Arithmetic
Calculate Bounding box coordinates from a rotated rectangle
Actionscript 3
Math
Geometry
Rotation
Bounding Box
Explain this snippet which finds the maximum of two integers without using if-else or any other comparison operator?
C
Algorithm
Math
Bit Manipulation
Max
What is the most efficient way to calculate the least common multiple of two integers?
Math
Why does adding two decimals in Javascript produce a wrong result?
Javascript
Math
Floating Point
Addition
Decimal
Sieve of Eratosthenes - Finding Primes Python
Python
Math
Primes
Sieve of-Eratosthenes
Fastest way to determine if an integer is between two integers (inclusive) with known sets of values
C++
C
Performance
Math
What is the maximum number of edges in a directed graph with n nodes?
Math
Graph
Max
Calculate percentage saved between two numbers?
Math
Formula
Javascript (+) sign concatenates instead of giving sum of variables
Javascript
Math
Math in reStructuredText with LaTeX
Math
Latex
Markdown
Restructuredtext
Gedit
Why are Fibonacci numbers significant in computer science?
Algorithm
Math
Data Structures
Fibonacci
Show a leading zero if a number is less than 10
Javascript
Math
Numbers
Digits
Wrong math with Python?
Python
Python 2.7
Math
Round a double to x significant figures
C#
Math
Rounding
Significant Digits
Changing the sign of a number in PHP?
Php
Math
Numbers
Sign
nth fibonacci number in sublinear time
Performance
Algorithm
Math
Time Complexity
Fibonacci
Writing your own square root function
Algorithm
Function
Math
Square Root
Newtons Method
The "guess the number" game for arbitrary rational numbers?
Algorithm
Math
Puzzle
Rational Numbers
Java math function to convert positive int to negative and negative to positive?
Java
Math
How helpful is knowing lambda calculus?
Math
Functional Programming
Computer Science
Lambda Calculus
Evaluating a string of simple mathematical expressions
Math
Parsing
Code Golf
Text Parsing
Infix Notation
Select k random elements from a list whose elements have weights
Algorithm
Math
Random
Statistics
Probability
Keeping trailing zeros
R
Math
Rounding
How to round up to the nearest 100 in JavaScript
Javascript
Math
Explain the quantile() function in R
Math
R
Statistics
Difference between 2 numbers
C#
Algorithm
Math
Numbers
How do I divide in the Linux console?
Linux
Math
Command Line
Divide
How to calculate modulus of large numbers?
Math
Modulo
Strategies for simplifying math expressions
Algorithm
Math
Simplify
Python Math - TypeError: 'NoneType' object is not subscriptable
Python
Math
Sorting
In Place
Finding out nth fibonacci number for very large 'n'
Algorithm
Math
Fibonacci
Exponentials in python: x**y vs math.pow(x, y)
Python
Math
Built In
Pow
Test if a number is fibonacci
Algorithm
Testing
Math
Fibonacci
Fastest way to list all primes below N
Python
Math
Optimization
Primes
What is the probability that the array will remain the same?
Algorithm
Math
Probability
Random.Next returns always the same values
C#
Math
Random
What distribution do you get from this broken random shuffle?
Algorithm
Language Agnostic
Math
Random
Shuffle
How do I get the total number of unique pairs of a set in the database?
Database
Math
Built in .Net algorithm to round value to the nearest 10 interval
C#
Math
Rounding
C and Python - different behaviour of the modulo (%) operation
Python
C
Math
Modulo
A simple algorithm for polygon intersection
Math
Geometry
2d
Polygon
Fastest way to get the integer part of sqrt(n)?
C++
C
Algorithm
Math
Performance
Multiple variables in SciPy's optimize.minimize
Python
Math
Scipy
Using atan2 to find angle between two vectors
Math
Vector
Geometry
What is the algorithm to convert an Excel Column Letter into its Number?
C#
Excel
Math
Covering Earth with Hexagonal Map Tiles
Math
Coordinates
Tesselation
Hexagonal Tiles
Units of a Fourier Transform (FFT) when doing Spectral Analysis of a Signal
Math
Physics
Fft
Measurement
Spectrum
Formulas to Calculate Geo Proximity
Php
Mysql
Math
Geospatial
Geo
How to find GCD, LCM on a set of numbers
Java
Math
Greatest Common-Divisor
Lcm
How to handle very large numbers in Java without using java.math.BigInteger
Java
Math
Biginteger
Integer
What does bitwise XOR (exclusive OR) mean?
Math
Language Agnostic
Bit Manipulation
Operators
Xor
Convert latitude/longitude point to a pixels (x,y) on mercator projection
Java
Math
Maps
2d
Mercator
Integer square root in python
Python
Math
Integer
Sqrt
How to round up the result of integer division?
Java
C#
C++
Math
How do I get a decimal value when using the division operator in Python?
Python
Python 2.7
Math
Syntax
Operators
Simple statistics - Java packages for calculating mean, standard deviation, etc
Java
Math
Statistics
Packages
What is the fastest integer factorization algorithm?
Algorithm
Math
Language Agnostic
Maple
Factorization
An inverse Fibonacci algorithm?
Algorithm
Math
Fibonacci
How to evaluate a math expression given in string form?
Java
String
Math
Difference between the built-in pow() and math.pow() for floats, in Python?
Python
Math
Fastest way to determine if an integer's square root is an integer
Java
Math
Optimization
Perfect Square
How to calculate the volume of a 3D mesh object the surface of which is made up triangles
Math
Geometry
Volume
Round a divided number in Bash
Linux
Bash
Math
Shell
Rounding
Standard deviation of generic list?
C#
Math
Statistics
Standard Deviation
Given Prime Number N, Compute the Next Prime?
Algorithm
Math
Primes
Optional args in MATLAB functions
Function
Math
Matlab
Parameters
Arguments
Rotating a Vector in 3D Space
Math
Vector
3d
Rotation
Linear Algebra
What do these operators mean (** , ^ , %, //)?
Python
Math
Operators
Native
Is the time complexity of the empty algorithm O(0)?
Algorithm
Math
Theory
Big O
Signed angle between two 3D vectors with same origin within the same plane
Math
Vector
3d
Geometry
Math for computer science
Math
Computer Science
Circle-circle intersection points
Algorithm
Math
Geometry
Intersection
Explain the proof by Vinay Deolalikar that P != NP
Math
Computer Science
Complexity Theory
Proof
P Np
What does numpy.gradient do?
Python
Math
Numpy
Is programming a subset of math?
Math
milliseconds to days
Java
Math
Time
Milliseconds
Why does NaN^0 == 1
R
Math
Na
Arithmetic Expressions
How to emulate background-size: cover on <img>?
Javascript
Jquery
Math
Background Size
Why is math.max() returning NaN on an array of integers?
Javascript
Arrays
Math
Max
Nan
Why is $a + ++$a == 2?
Php
Math
Operator Precedence
Fastest implementation of sine, cosine and square root in C++ (doesn't need to be much accurate)
C++
Math
Optimization
Trigonometry
What is "entropy and information gain"?
Math
Text
Computer Science
Nltk
Text Mining
How to calculate an RGB colour by specifying an alpha blending amount?
Math
Colors
Alphablending
How to convert Euler angles to directional vector?
C++
Math
Game Physics
Convert a number range to another range, maintaining ratio
Python
Math
Creating all possible k combinations of n items in C++
C++
Algorithm
Math
Combinations
Combinatorics
to_d to always return 2 decimals places in ruby
Ruby on-Rails
Ruby
Math
Decimal
Currency
What is 1LL or 2LL in C and C++?
C++
C
Math
Long Integer
Cmath
Is there an easily available implementation of erf() for Python?
Python
Math
Combinatoric 'N choose R' in java math?
Java
Math
Combinatorics
Determine Whether Two Date Ranges Overlap
Datetime
Math
Language Agnostic
How can I check for NaN values?
Python
Math
How can I quickly estimate the distance between two (latitude, longitude) points?
Python
Math
Maps
Mapping
Latitude Longitude
What are the core mathematical concepts a good developer should know?
Algorithm
Math
Language Agnostic
How do you do *integer* exponentiation in C#?
C#
Math
Integer
Exponentiation
What to do with Java BigDecimal performance?
Java
Optimization
Currency
Math
Bigdecimal
Representing 128-bit numbers in C++
C++
Math
How to check if an integer is a power of 3?
Algorithm
Math
"Average" of multiple quaternions?
Math
Quaternions
How can I divide two integers to get a double?
C#
Math
Int
Double
Exponentiation in Python - should I prefer ** operator instead of math.pow and math.sqrt?
Python
Math
Exponentiation
How to sum values in typescript array based on array items property?
Typescript
Math
Why can't programs be proven?
Math
Theory
Proof
Axiom
Formal Verification
JavaScript % (modulo) gives a negative result for negative numbers
Javascript
Math
Modulo
Algorithm for simplifying decimal to fractions
C#
.Net
Algorithm
Math
Optimizations for pow() with const non-integer exponent?
C++
Math
Optimization
Avx
Exponent
How to find prime numbers between 0 - 100?
Javascript
Math
Primes
In JavaScript, why does zero divided by zero return NaN, but any other divided by zero return Infinity?
Javascript
Math
Floating Point
Nan
Infinity
Efficiently getting all divisors of a given number
C++
Algorithm
Math
Factorization
Use of java.math.MathContext
Java
Math
Bigdecimal
Mathcontext
Smart design of a math parser?
Math
Parsing
Calculator
How do I calculate power-of in C#?
C#
Math
Math symbols in listings
Math
Latex
Listings
Modulo in order of operation
Math
Expression
How to rotate a vertex around a certain point?
Java
Math
Geometry
numpy.sin function in degrees?
Python
Math
Numpy
Trigonometry
Is the double asterisk ** a valid JavaScript operator?
Javascript
Math
Operators
Math.floor VS Math.trunc JavaScript
Javascript
Performance
Math
Function to determine if two numbers are nearly equal when rounded to n significant decimal digits
Python
Math
Floating Point
Numpy
Print two-dimensional array in spiral order
Arrays
Algorithm
Language Agnostic
Math
What's the simplest way to extend a numpy array in 2 dimensions?
Python
Arrays
Math
Numpy
What's the shortest pair of strings that causes an MD5 collision?
Math
Cryptography
Md5
Hash Collision
Quadratic Bézier Curve: Calculate Points
Math
Point
Curve
Quadratic
Improved Area Lighting in WebGL & ThreeJS
Math
3d
three.js
Webgl
Lighting
Fast ceiling of an integer division in C / C++
C++
C
Algorithm
Math
Why does Math.min() return -0 from [+0, 0, -0]
Javascript
Math
Floating Point
Min
Negative Zero
How do I find the next multiple of 10 of any integer?
C
Algorithm
Math
Cracking short RSA keys
Math
Rsa
Encryption Asymmetric
Public Key-Encryption
Python: max/min builtin functions depend on parameter order
Python
Math
Comparison
What happens when you increment an integer beyond its max value?
Java
Math
How much do two rectangles overlap?
Algorithm
Math
Geometry
Bounding Box