46,077 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
119
views
Accurate computation of the inverse gamma function with the standard C math library
The inverse of the gamma function over the reals is multivalued with an infinite number of branches. This self-answered question is about the principal
inverse of the gamma function, Γ0-1(x), whose ...
Advice
0
votes
1
replies
72
views
Generating SageMath codes to solve this elliptic curve equation
I was working on this elliptic curve equation: y^2 = x^3 - 228n*x - (432n^6 - 1368n^3 - 361) and using SageMath, I have been able to develop rational points for the cases n = 1, 3 and 4. For the case ...
Advice
0
votes
13
replies
199
views
Which algorithm does the truncate function use in c++
I'm wondering how the truncate function works. C++ is just an example i'm using because it's a language I know. I've searched online and I can't seem to find how it works, simply how to use it and ...
Advice
0
votes
0
replies
103
views
How to properly change the font family of KaTeX math text that also looks nice on stretched/large glyphs?
I was asking ChatGPT about how to take a custom-designed monospaced font, and specifically how to make the "stretchy math glyphs/constructs" (parentheses, brackets, braces, integrals, ...
Advice
1
vote
9
replies
107
views
Sum of a binary tree
I have a binary tree which leafs have a size of 1, and the parent double in size at each level.
I project those nodes on a linear axe (memory space).
I need to get the equation that gives the adress ...
Simon's user avatar
- 2,143
8
votes
2
answers
358
views
Finding a maximum "score" of a permutation
Consider an array of a permutation P of length n (n > 2), namely some order of the integers 1 through n.
Example of P with length n = 7,
[6,5,2,3,7,1,4]
A "score" of a permutation is ...
-3
votes
1
answer
44
views
Auto converting typed math to Latex/Mathjax [closed]
I use a learning management system from my coaching classes, and due to copyrighted material, I can't share screenshots here. However, I'm attempting to convert typed math to Latex/Mathjax math ...
0
votes
2
answers
99
views
Weighted percentages
I have a problem on how to calculate "partial" percentages that match the "total" percentage.
My problem is as in the table below.
I have values for the beginning and end of the ...
1
vote
0
answers
72
views
QEF Implementation returns unexpected results on the Z value
I have a QEF implementation like this
float atA[3][3] = { 0 };
FVector atb = FVector::ZeroVector;
for (const FEdgeIntersection& e : IntersectionList)
{
const FVector& n = e.Normal;
...
1
vote
2
answers
83
views
How do I remap the output of an SVG <feTurbulence> filter's Alpha channel to span the entire range of brightness values?
I know I can create a clean grayscale fog effect by applying an <feColorMatrix> effect to the output of an <feTurbulence> effect in order to isolate the Alpha channel:
<?xml version="1....
2
votes
0
answers
53
views
Having problems computing PDE Residuals
I'm computing PDE residuals for The_Well datasets (e.g. turbulent_radiative_layer_2D and shear_flow) using finite differences, but the residuals are much larger than I expect. The data are generated ...
-2
votes
1
answer
94
views
Algorithm to calculate how much blend of points is a specific 2D point [closed]
I have a Set of 2D points that I want to create a set of areas from, similar to a Voronoi Diagram.
The difference is that I would like these areas to be blended, like in the following image.
I wouldn'...
3
votes
3
answers
152
views
Wrong result when adding up to result in my number conversion program [duplicate]
I am currently writing a program in C to convert numbers between bases as an exercise. It asks the user for an input and for the base, that the number given is. It then gives the input into the ...
14
votes
4
answers
2k
views
Estimation for Pi is precise but inaccurate
My code reliably finds a precise (similar value every time) but in the region of 3.24 and 3.26. Competent mathematicians will note this around 0.1 away from an ideal Pi value.
My code revolves around ...
1
vote
0
answers
59
views
Euler angles continuity ZYX (Yaw Pitch Roll) when pitch crosses ±90
I’m using a Force Dimension Omega.7. From its ×ばつ3 rotation matrix
R
, I extract ZYX Euler angles (Yaw–Pitch–Roll) as:
double yaw= std::atan2(R\[1\]\[0\], R\[0\]\[0\]); // Z
double pitch = std::...