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 | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
# | 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 | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | nor | 152 |
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?