Top "Discrete-mathematics" questions

NOTE: Only questions about software development related to discrete mathematics are on topic.

how to minimize a function with discrete variable values in scipy

I'm trying to optimize a target function that has multiple input variables (between 24 and 30). These variables are samples of three …

python math numpy scipy discrete-mathematics
Code-golf: generate pascal's triangle

Generate a list of lists (or print, I don't mind) a Pascal's Triangle of size N with the least lines …

algorithm code-golf combinatorics discrete-mathematics pascals-triangle