multiplication
Multiplication algorithm for abritrary precision (bignum) integers
I\'m writing a small bignum library for a homework project. I am to implement Karatsuba multiplication, but before that I would like to write a naive multiplication routine.[详细]
2022-12-28 17:33 分类:问答Multiplying char and int together in C part 2
If I do the following: int c0 = CHAR_MAX; //8 bit int c1 = CHAR_MAX; //8-bit in开发者_如何转开发t i = c0*c1; //store in 32-bit variable[详细]
2022-12-27 21:45 分类:问答Multiply each integer in a flat array by 60
I have an array called $times. It is a list of small numbers (15,14,11,9,3,2). These will be user submitted and are supposed to be minutes. As PHP time works on seconds, I would like to multiply each[详细]
2022-12-27 11:49 分类:问答Multiplying complex with constant in C++
The following code fails to compile #include <iostream> #include <cmath> #include <complex>[详细]
2022-12-26 19:24 分类:问答Multiply char by integer (c++)
Is it possible to multiply a char by an int? For example, I am trying to make a graph, with *\'s开发者_如何转开发 for each time a number occurs.[详细]
2022-12-26 16:06 分类:问答Why does multiplying a double by -1 not give the negative of the current answer
I am trying to multiply a double value by -1 to get the negative value. It continues to give me a positive value[详细]
2022-12-23 13:49 分类:问答Why does (int)(33.46639 * 1000000) return 33466389?
(int)(33.4开发者_如何转开发6639 * 1000000) returns 33466389 Why does this happen?Floating point math isn\'t perfect.What every programmer should know about it.[详细]
2022-12-22 18:55 分类:问答Where can I find soft-multiply and divide algorithms?
I\'m working on a micro-controller without hardware multiply and divide.I need to cook up software algorithms for these basic operations that are a nice balance of compact size and efficiency.My C com[详细]
2022-12-22 05:51 分类:问答Double variable keeping wrong value
Simimilar problem to Math.Atan2 or class instance problem in C# and add two double given wrong result It is something that simple lines:[详细]
2022-12-15 23:32 分类:问答Python basic maths
My friend wrote up this script for me to calculate the quantity of construction materials needed for a theoretical site.[详细]
2022-12-15 13:56 分类:问答