Skip to main content

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).

Filter by
Sorted by
Tagged with
2 votes
2 answers
211 views

I'm implementing a type conversion routine for a programming language. Under arithmetic context, there can be 4 types: null, ...
DannyNiu's user avatar
  • 307
0 votes
1 answer
30 views

i have watched numerous tutorials on implementing the SAT, but i think the math eludes me (as it usually does). Say, theoretically, that you are looping over each edge in a programming language, now ...
Jared Kosiba's user avatar
0 votes
0 answers
78 views

I am currently working on a Fortran codebase for numerical simulation, I have managed to simplify some loops to the following code ...
Eduard Occhipinti's user avatar
1 vote
0 answers
69 views

I have been reading the literature "Factoring very-high-degree polynomials" by G.A. Sitton, C.S. Burrus, J.W. Fox, and S. Treitel". This algortihm seems to be efficient for very high ...
Nishchala Mukku ee24s004's user avatar
0 votes
1 answer
104 views

I am aware that there are algorithms to fit, say, an ellipse to a bunch of given points on a plane. For instance, this SO question has answers which feature both literature on the algorithms and ...
Andreas Christophilopoulos's user avatar
0 votes
2 answers
143 views

I think this question is more of a mathematics question rather than a programming question, read below for further details. Goal I have a system of somwehat big ($64 \times 64$) matrix equations of ...
clebbf's user avatar
  • 1
0 votes
2 answers
159 views

The given scheme $AU = F,$ where $A$ is an operator, and $U, F$ are the square $(N+1)\times(N+1)$-sized matrices. The action of operator $A$ is given by: $$ -a \frac{U_{i-1,j}-2U_{i,j}+U_{i+1,j}}{h^2} ...
fragileradius's user avatar
2 votes
1 answer
235 views

I am interested in problem 759 in Project Euler. For those who don’t know, here’s the problem statement: The function $f$ is defined for all integers as follows: $$\begin{align} f(1) &= 1 \\ f(2n)...
dnn25519's user avatar
  • 731
1 vote
0 answers
53 views

I have been looking at algebraic structures (in particular groups) in functional programming. I have been fascinated by how monoids in particular have a wide applicability to the functional ...
Chris Sherlock's user avatar
0 votes
0 answers
53 views

I'm writing a Python program to calculate the maximum value of a polynomial $p * (1 + (d * (1 + (o * (1 + g))))$, subject to the constraints that $p$, $d$, $o$ and $g$ are all positive integers, and $...
ayaan098's user avatar
1 vote
1 answer
173 views

I am trying to convert a transform from the Touch Designer Coordinate System to the Unreal Engine Coordinate System (and others). Ideally, I want to take a position, rotation (in Euler angles), and a ...
Benjamin Danger Johnson's user avatar
0 votes
0 answers
38 views

This is a problem from Knuth's The Art of Computer Programming, Volume 4B, Mathematical Preliminaries Redux. The problem is to find three six sided dice named $A$, $B$ and $C$ respectively, with sides ...
user avatar
2 votes
1 answer
91 views

After doing a bit of digging, I can't find any native method in Julia's linear algebra package that let's me quotient a vector by a subspace. The Wikipedia article seemed to mainly focus on the theory ...
Nate's user avatar
  • 1,869
1 vote
1 answer
70 views

I solved the following puzzle https://leetcode.com/problems/unique-paths/description/ here at leetcode using programming. It is not very difficult to reason about how to computationally get the answer....
Yohannes Kifle's user avatar
-3 votes
1 answer
107 views

I wanted to try and get the first 20 Bernoulli numbers using Python. Recently, I've been researching about Ada Lovelace, and Note G was an algorithm for the Analytical Engine to compute Bernoulli ...
Daylily's user avatar
0 votes
0 answers
72 views

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 ...
Avana's user avatar
  • 1
0 votes
0 answers
89 views

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 ...
Sonu Gupta's user avatar
1 vote
1 answer
150 views

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 ...
pie's user avatar
  • 9,035
2 votes
0 answers
131 views

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, ...
James Sarantidis's user avatar
0 votes
0 answers
85 views

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 ...
The Bosco's user avatar
  • 1,985
0 votes
1 answer
62 views

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 ...
Truls Henriksson's user avatar
0 votes
0 answers
60 views

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 ...
vallev's user avatar
  • 1,099
12 votes
6 answers
2k views

I am a computer science student with an interest in competitive programming. I am currently looking to deepen my understanding of combinatorics, as it is a crucial part of algorithm design and ...
Sersawy's user avatar
  • 335
1 vote
1 answer
89 views

For a project, I am requested to find the center point of an ellipse (not necessarily centered), by just 2 points on it and radiuses. B and E are points on an ellipse (Begin and End of an elliptic arc)...
Xerix's user avatar
  • 113
2 votes
0 answers
128 views

In Sympy package there is Groebner() function, which allows to find a Groebner basis={$g_1, g_2,..., g_k$} for an ideal I, generated by polynomials $\{f_1, f_2,..., f_n\}$. I wonder if there is ...
Dmitri Scheglov's user avatar

1
2 3 4 5
15