Questions tagged [programming]
For mathematical questions related to programming, and questions where a computer-aided solution is strongly suggested. A strong connection with a mathematical topic is needed to make programming questions on-topic. This should not be the only tag. Consider also using the tags (algorithms), (numerical-methods), or (linear-programming).
730
questions
0
votes
0
answers
22
views
Optimal Value t for Subdivision of Cubic Bézier Curve and How to Calculate It
In Gabriel Suchowolski’s paper, “Quadratic bezier offsetting with selective subdivision”, he explains how the midpoint—or better said, a parameter $t$ of 0.5—is often not the optimal* point on a ...
2
votes
1
answer
69
views
In SageMath, how to use GF() on a very large finite field ? Or declare an elliptic curve without GF()?
As far I understand it correctly, GF(Integer) is used to declare a finite field which can for example be used for declaring an elliptic curve (this is what I want ...
0
votes
0
answers
77
views
confused with the notion of probability
I understand probability as two processes;
We "do" something (or something is "happening"). lets call it the random experiment, and
We "expect" something from this ...
1
vote
0
answers
21
views
Given two points on the Poincaré disk model, what is the formula for a hyperbolic line passing through the two points?
I'm trying to code a Scratch project where you can place two (or more) points in a Poincaré disk to create hyperbolic lines. So far, the engine is going pretty well, but the actual line in between the ...
0
votes
0
answers
48
views
Elliptical Grid Mapping in Shader
I wanted to make a Elliptical Grid Mapping Shader, but it is not a perfect square and it is rotated.
If i multiply the coords by sqrt(2.) and divides them after again, it is an square, but still ...
1
vote
1
answer
130
views
How to draw more precise of iterations in this type of constructions?
In this question I made this construction
Given a non-regular pentagon $A_1B_1C_1D_1E_1$ with no two adjacent angle having a sum of 360 degrees, from the pentagon $A_nB_nC_nD_nE_n$ construct the ...
3
votes
1
answer
80
views
Why can Haskell lists be infinite in length whereas inductively defined sets must contain finite sized elements?
Sets that are defined inductively can only contain elements that finite in size (e.g., length, height, space). This can be intuitively proven by realizing that any element in such a set can be ...
2
votes
0
answers
59
views
Fractal Subdivision for Procedural Generation
This is my first attempt at creating a thread here, thus I'm not sure how much context I need to provide you. Please leave a commend if you need additional info. With that disclaimer out of the way, ...
3
votes
3
answers
214
views
Book Recommendations for Learning Python for Mathematics.
Lately, I've been finding that I often need to compute various things and graph some pretty complicated functions. I've realized that learning to program, especially in Python, could be really helpful ...
0
votes
0
answers
21
views
How to solve a paths optimization problem in node-labeled and weighted graphs
I am having trouble finding a way to optimize this problem in Python. Even if it is not exact, I am trying some heuristics.
Let $G = (V,\mathbf{L}, E,\mathbf{W})$ be a graph where $V$ is the set of ...
2
votes
1
answer
29
views
How to Find Closest Average for a set of variables from Multiple Sets of Numbers
I'm working on a problem where I have several sets of numbers and I need to find the closest average for a set of target values by combining numbers from these sets.
For example, let's say I want to ...
0
votes
1
answer
33
views
How can I make a vector of the products of the elements $(a_0b_0,a_0b_1,a_1b_0,a_1b_1)$ from the vectors $(a_0,a_1)$, $(b_0,b_1)$?
Given the vectors
$$\bar{a}=\left(\begin{array}\\a_0\\a_1\end{array}\right), \hspace{5pt} \bar{b}=\left(\begin{array}\\b_0\\b_1\end{array}\right) \in \mathbb{R}^2,$$
is there any way to get the ...
2
votes
2
answers
161
views
Is everything an object in Math, just like in Objected-Oriented Programming? (Tao's Analysis I)
I am reading Tao's Analysis I, and there are a number of passages which seem to suggest an object-oriented point of view of mathematics reminiscent of the object-oriented programming with which I, as ...
0
votes
0
answers
38
views
Circular Breakout Game: time or collisions needed to reach nth layer
Shower thoughts...
A tiny ball starts inside a unit circle, surrounded by fixed concentric circles of increasing integer radius length. So it starts in is the 0-th "level".
The ball moves in ...
0
votes
0
answers
23
views
Solving systems of linear algebraic equations in singular case
I want to solve this system:
$A \in \mathbb{R}^{n \times n}, \quad Ax = b, \quad det(A) = 0$
Hence, there are either no solutions or there are infinitely many of them, then I want to find a pseudo-...