Say, I have 2 vectors : — (1,2,3) and (0.3,0.5,1) .
Can FFT be applied to find the multiplication of these 2 polynomials ?
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
Say, I have 2 vectors : — (1,2,3) and (0.3,0.5,1) .
Can FFT be applied to find the multiplication of these 2 polynomials ?
Name |
---|
Yes.
How?
Why did you think that FFT is only applicable to integers? Normal FFT uses floating point numbers in their calculations and the result returned is their floating point convolution. It's worked with as integers for multiplying polynomials with integer coefficients.
I can't do it because i do round in my fft, i have to multiplay the polynomial with a 10^number to make it integer.
I don't understand what you are talking about. FFT is suitable for complex/floating point convolution, there's no need to multiply by some power of 10 to pass integers to FFT.
maybe you think that FFT is NTT?I bass doubles ok but i meant can i multiplay 2.5+3.2*a^1+4.5*a^2 With 3.5+1.3*a^1+3.4*a^2 ? or can i multplay two doubles as a bigdoubles with fft like bigint with fft like this 9493888383893383883.429382828484828482883 without shifting the dot ?
Explain it more clearly.
Ok I want to devide two polynomials, how can i do it?
You can do long division
Why wouldn't you like to shift the dot? Also for big floating point numbers: the mantissa can be FFTed.
Beacause my real problem is to divide 2 bigints. How can i do long division?