multiplication Questions

4

Solved

S = [22, 33, 45.6, 21.6, 51.8] P = 2.45 Here S is an array How will I multiply this and get the value? SP = [53.9, 80.85, 111.72, 52.92, 126.91]
Uncurl asked 19/11, 2011 at 15:19

7

Solved

Is there any way to get the high half of the multiplication of two longs in Java? I.e. the part that vanishes due to overflow. (So the upper 64 bits of the 128-bit result) I'm used to writing Open...
Sharice asked 17/9, 2013 at 20:22

5

Solved

Why is a mod (%) operation more expensive than a multiplication (*) by a bit more than a factor of 2? Please be more specific about how CPU performs division operation and returns the result for MO...
Navigable asked 5/11, 2010 at 19:30

3

How to multiply two 64-bit integers by another 2 64-bit integers? I didn't find any instruction which can do it.
Langobardic asked 25/7, 2013 at 16:14

2

Solved

I am not really trying to optimize anything, but I remember hearing this from programmers all the time, that I took it as a truth. After all they are supposed to know this stuff. But I wonder why ...
Pronto asked 1/4, 2013 at 14:58

2

Solved

I have these problems about polynomials and I've spent about 4 hours on this, but I just can't get it. I'm new to Python and programming and I've tried working it out on paper, but I just don't kno...
Smudge asked 7/8, 2013 at 2:12

5

I have been trying to achieve something which should pretty trivial and is trivial in Matlab. Using methods of OpenCV, I want to simply achieve something such as: cv::Mat sample = [4 5 6; 4 2 5; 1 ...
Congreve asked 27/7, 2013 at 0:3

5

Solved

I am trying to implement the Karatsuba multiplication algorithm in c++ but right now I am just trying to get it to work in python. Here is my code: def mult(x, y, b, m): if max(x, y) < b: r...
Dogfish asked 14/8, 2011 at 18:34

2

Solved

How would you find the greatest and positive IEEE-754 binary-64 value C such that every IEEE-754 product of a positive, normalized binary-64 value A with C is smaller than A? I know it must be clo...
Tagmeme asked 22/8, 2018 at 15:55

3

Solved

The following code fails to compile #include <iostream> #include <cmath> #include <complex> using namespace std; int main(void) { const double b=3; complex <double> i(0...
Knead asked 15/4, 2010 at 18:11

2

I'm looking to multiply two matrices together in R, one of which may contain randomly placed NA values (i.e., there's no reason they will be all in a row or column), but I still want an output like...
Gentlewoman asked 14/5, 2013 at 4:23

3

What's the most efficient way to implement Karatsuba large number multiplication with input operands of unequal size and whose size is not a power of 2 and perhaps not even an even number? Padding ...
Nudicaul asked 12/5, 2013 at 0:23

5

I read price from user input. When i multiply the input with int like this T="$((PRICE*QTY))"|bc; gives line 272: 12.00: syntax error: invalid arithmetic operator (error token is ".00") or...
Flask asked 19/7, 2010 at 9:41

5

Solved

I know how to do element by element multiplication between two Pandas dataframes. However, things get more complicated when the dimensions of the two dataframes are not compatible. For instance bel...
Sodomite asked 9/1, 2014 at 14:25

9

I have been trying to implement Karatsuba Algorithm in java without using BigInteger. My code is applicable only when both the integers are same & have same number of digits. I do not get the c...
Dougald asked 8/7, 2013 at 15:58

5

Solved

If I use a calculator, 2/3 is 0.6666666667 which is about 67%. However if I try to do the same thing with css calc I get an error. width: calc(2 / 3); Is there a working way for this? I don't t...
Flews asked 28/6, 2017 at 14:57

3

Solved

I have a multiply combobox with checkbox items <ComboBox x:Name="cmb" IsEditable="True" IsReadOnly="True" DropDownClosed="cmb_DropDownClosed"> <ComboBox.ItemTemplate> <DataTemplat...
Nones asked 17/2, 2017 at 6:45

5

Solved

What I am trying to build is a function that takes an input number and checks if the following number is a multiple of that number. function checkIfMult($input,$toBeChecked){ // some logic } ex...
Impair asked 6/3, 2018 at 7:28

6

Solved

Hello so I want to multiply the integers inside a list. For example; l = [1, 2, 3] l = [1*2, 2*2, 3*2] output: l = [2, 4, 6] So I was searching online and most of the answers were rega...
Mcclurg asked 19/10, 2014 at 1:29

1

I am working with Numpy on an image processing problem, and I am trying to avoid loops and do the following: I have a matrix M of dims NxNxKxK (which is a matrix NxN of matrices KxK), and for each...
Riddle asked 13/12, 2017 at 11:47

3

Good afternoon! I am trying to develop an NTT algorithm based on the naive recursive FFT implementation I already have. Consider the following code (coefficients' length, let it be m, is an exact...
Windshield asked 21/4, 2012 at 16:36

2

Solved

In Visual C++, _umul128 is undefined when targeting 32-bit Windows. How can two unsigned 64-bit integers be multiplied when targeting Win32? The solution only needs to work on Visual C++ 2017 targe...
Chiquia asked 22/10, 2017 at 4:2

7

Solved

(Apologies if this has been asked before - I can't believe it hasn't, but I couldn't find one. Perhaps my search-fu is weak.) For years I've "known" that Java has no native function to scale an ar...
Narrative asked 17/10, 2011 at 9:59

1

Solved

Say %edi contains x and I want to end up with 37*x using only 2 consecutive leal instructions, how would I go about this? For example to get 45x you would do leal (%edi, %edi, 8), %edi leal (%...
Alleen asked 29/9, 2017 at 1:44

5

Solved

I'm trying to measure some activity in C (Matrix multiplying) and noticed that I should do something like this: clock_t start = clock(); sleep(3); clock_t end = clock(); double elapsed_time = (end...
Vic asked 31/10, 2012 at 10:39

© 2022 - 2024 — McMap. All rights reserved.