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 | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 160 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | Dominater069 | 154 |
8 | awoo | 154 |
10 | luogu_official | 151 |
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?