Skip to main content
2 votes
2 answers
224 views

I am trying to solve the problem posed in this question which asks that division of two numbers be performed in a bitwise manner. So, I wrote the following functions. sum() adds two numbers. larger() ...
uran42's user avatar
  • 469
6 votes
1 answer
265 views

I have a fixed-point math-heavy project and I was looking to speed up integer divisions. I tested double division with SSE4 and AVX2 and got nearly 2x speedup versus scalar integer division. I wonder ...
M.kazem Akhgary's user avatar
0 votes
2 answers
99 views

I am trying to record CPU and memory utilizations of processes running in my window server using PowerShell. Script is running well but I am not getting anything if Mutiple process are running with ...
Vineet's user avatar
  • 37
0 votes
2 answers
94 views

1st: I want to write a function "div" that takes two numbers as parameters and returns the quotient of the first number divided by the second number. and need to use a try-except statement ...
Kasun98's user avatar
  • 33
0 votes
0 answers
39 views

Suppose I have the following code within a VBA script: Dim Start As Long Dim Final As Long Dim Rate As Long Start = 10 End = 9 Rate = Final / Start MsgBox("Rate Variable = " + CStr(Rate) + ...
thnkwthprtls's user avatar
  • 3,517
0 votes
1 answer
68 views

I was having trouble following an example in The Art of Computer Programming, (3rd Ed.) by Donald Knuth. I figured it out by starting to ask here ("explain it to a duck"), so I thought I ...
Rich006's user avatar
  • 215
4 votes
1 answer
154 views

The documentation of the NUMERIC type states: Specifying: NUMERIC without any precision or scale creates an “unconstrained numeric” column in which numeric values of any length can be stored, up to ...
Alex R's user avatar
  • 3,309
4 votes
0 answers
156 views

I'm currently focusing on the implementation of Kyber (ML-KEM). I noticed that the AVX2 version of the compress operation seems to use a fast division algorithm. In the compress operation, we need to ...
Tall's user avatar
  • 123
1 vote
0 answers
71 views

I've been working on a fence calculation tool that breaks down a total length, as equally as possible, into components (rails and posts) using a predefined set of rail lengths. The user can choose a ...
Arnaud Hanssens's user avatar
0 votes
1 answer
94 views

I am making a game in Python where you answer math questions. I have added 3 operations: addition, subtraction and multiplication. They have 5 modes, each harder than the other. Now I want to add ...
darkphantom2709's user avatar
1 vote
1 answer
168 views

Starting to learn assembly x86-64, I'm writing a program that gets an array of integers and does some calculations on it. The purpose isn't relevant to the question, but the calculations include ...
Newlearner826's user avatar
2 votes
0 answers
86 views

I'm trying to trace this C source code (when a = 2): b = a/3; To this ARM assembly code (for unsigned 1 byte value): ldrb r2, [fp, #-6] @ zero_extendqisi2 @ tmp162, a ldr r3, .L34 @ tmp164, ...
Evan Lehr's user avatar
-2 votes
1 answer
174 views

#define BLUR 2 #define LEN (2 * BLUR + 1) * (2 * BLUR + 1) using namespace std; int main() { cout << 50 / LEN; // result is 50 } the expected result is 2 but it's 50. I try another numbers ...
reza sohrabi's user avatar
-2 votes
1 answer
55 views

i'm new to php. please i would want to get figure from user's input amount such as if a user pays 2500 i want to get 2.5 from the amount he inputed examples below 1000 ------ 1 , 1500 ------...
Tunde Adam's user avatar
0 votes
2 answers
272 views

I'm working on a problem from a Java textbook which asks to find the first 10 numbers with 50 decimal digits that are divisible by 2 or 3. Here is my code: import java.math.*; public class Divisible {...
Osmium's user avatar
  • 189

15 30 50 per page
1
2 3 4 5
153