Skip to main content
2 votes
1 answer
169 views

I write a cross-platform program for Windows and Linux, and I would like it to behave as similar on both platforms as possible. I use some mathematics in the program, e.g. std::atan2 function calls, ...
Fedor's user avatar
  • 24.7k
2 votes
1 answer
117 views

I'm in the process of writing some mathematical operations. Here's a sample program to give you an idea of what kind of thing I could be doing: from dataclasses import dataclass import random @...
Ivan's user avatar
  • 397
Advice
1 vote
1 replies
73 views

There is a progress indicator with 100 steps. However, the total number of items being processed is much too large; it doesn't fit in a register. Thus, the simple way of V = (P * 100) / T is ...
Joshua's user avatar
  • 43.6k
Advice
2 votes
3 replies
108 views

I have an embedded device that implements an unknown 32-bit CRC-based checksum algorithm in hardware. I can use this device as an oracle to generate checksum values from arbitrary input, and verify ...
perniciousquery's user avatar
Best practices
3 votes
6 replies
142 views

I am working on a multiplication routine in a big integer library in POSIX C99 with a signature of bigint_st *bigint_mul(bigint_st *dest, const bigint_st *a, const bigint_st *b). Many of the routines ...
Eric Pruitt's user avatar
  • 1,903
-1 votes
0 answers
72 views

I have a 3D rasterization rendering program on scratch.mit.edu, which has proper movement and rotation matrices for yaw and pitch (not roll). The grid is located on y=-50, and I have near plane and ...
Person12343's user avatar
Advice
0 votes
4 replies
56 views

I want a simple hashing algorithm with the following conditions: 1,) if n is a ten-digit integer, eg, 1234567890, then the hash of n will equal the hash of all (left-justified) sub-strings of n. As in,...
EternalPropagation's user avatar
2 votes
1 answer
201 views

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 ...
njuffa's user avatar
  • 27.1k
Advice
0 votes
1 replies
79 views

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 ...
Agbanwa Jamal's user avatar
Advice
0 votes
13 replies
210 views

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 ...
nugget's user avatar
  • 71
Advice
0 votes
0 replies
126 views

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, ...
Lance Pollard's user avatar
Advice
1 vote
9 replies
114 views

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
9 votes
2 answers
382 views

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 ...
user31824378's user avatar
-3 votes
1 answer
51 views

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 ...
chickfeet08's user avatar
0 votes
2 answers
112 views

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 ...
Jaol's user avatar
  • 391

15 30 50 per page
1
2 3 4 5
3073