# discrete-mathematics

##### 如何对矩阵上的函数进行离散优化？(How to perform discrete optimization of functions over matrices?)

2021-09-22 04:41:08    分类:技术分享    python   numpy   scipy   mathematical-optimization   discrete-mathematics

##### 如何对矩阵上的函数进行离散优化？(How to perform discrete optimization of functions over matrices?)

2021-09-22 04:39:44    分类:技术分享    python   numpy   scipy   mathematical-optimization   discrete-mathematics

##### 如何从现有的“步骤列表”中定义匹配的轴槽口(How to define matching axis notches from existing "step list")

2021-09-18 10:43:34    分类:技术分享    algorithm   math   flot   discrete-mathematics   number-theory

##### 校验大量质数？ （用于验证）(Checksumming large swathes of prime numbers? (for verification))

2021-09-15 05:04:05    分类:技术分享    primes   checksum   discrete-mathematics

##### 校验大量质数？ （用于验证）(Checksumming large swathes of prime numbers? (for verification))

2021-09-15 05:02:13    分类:技术分享    primes   checksum   discrete-mathematics

##### 在 OpenGL 中绘制圆所需的边数(Number of Sides Required to draw a circle in OpenGL)

2021-09-12 21:15:24    分类:技术分享    opengl   geometry   trigonometry   mathematical-optimization   discrete-mathematics

##### Number of Sides Required to draw a circle in OpenGL

Does anyone know some algorithm to calculate the number of sides required to approximate a circle using polygon, if radius, r of the circle and maximum departure of the polygon from circularity, D is given? I really need to find the number of sides as I need to draw the approximated circle in OpenGL. Also, we have the resolution of the screen in NDC coordinates per pixel given by P and solving D = P/2, we could guarantee that our circle is within half-pixel of accuracy.

2021-09-05 22:26:41    分类:问答    opengl   geometry   trigonometry   mathematical-optimization   discrete-mathematics

##### How to define matching axis notches from existing "step list"

I need a way to align tick marks on two separate axis, while being able to control the "step" value (value between tick marks), where both axis start at mark 0 and end on a different maximum value. Why this problem: Flot, the JS charting package has an option to align tick marks, but when I do, I cannot control the step value. I can however control the step value directly, but then I lose the ability to align tick marks. I can however revert to defining my own max and step values, to get what I need (aligned tick marks while maintaining desired step value), but I need some help. yielding this

2021-09-05 03:55:33    分类:问答    algorithm   math   flot   discrete-mathematics   number-theory

##### How to solve a congruence system in python?

for the problem Ax ≡ B (MOD C) I did this, and it was okay: def congru(a,b,c): for i in range(0,c): if ((a*i - b)%c)== 0 : print(i) Now I have to solve a system of equations, where A = ( 5x + 7y) and A= (6x + 2y), and B= 4 and B = 12 , respectively, and C is 26. In other words: ( 5x + 7y)≡ 4 (mod 26) (6x + 2y)≡ 12 (mod 26) How do I do that? Thanks.

2021-08-30 18:40:14    分类:问答    python   algorithm   math   discrete-mathematics

##### 寻找最小组件集合的算法(Algorithm for finding smallest collection of components)

2021-08-14 02:49:40    分类:技术分享    algorithm   combinations   graph-theory   mathematical-optimization   discrete-mathematics