# Multiplying Polynomials

## Submit

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

## Problem

Multiply several polynomials (real or complex) to create a new polynomial. This idea came from creating programs in the esoteric language Polynomial, see: http://esoteric.voxelperfect.net/wiki/Polynomial. Note that extremely large coefficients will often be in the result, so (depending on your language) it might be a good idea not to use the regular data types when multiplying.

## Options

exec is denied

now post-mortem time, all source codes will be revealed

## Sample input:_

(x + 3)(x + 9)

## Sample output:

x^2 + 12x + 27

## Sample input:_

(x + 4)(x - 7)(x - 2i)(x + 2i)

## Sample output:

x^4 - 3x^3 - 24x^2 - 12x - 112

## Sample input:_

(x - 1 - 2i)(x - 1 + 2i)(x - 243)(x - 25i)(x + 25i)(x - 7i)(x + 7i)(x - 1 - 11i)(x - 1 + 11i)(x - 4826809)

## Sample output:

x^10 - 4827056x^9 + 1192223600x^8 - 8577438158x^7 + 958436165464x^6 - 4037071023854x^5 + 141614997956730x^4 - 365830453724082x^3 + 5225367261446055x^2 - 9213984708801250x + 21911510628393750

## Ranking

Rank | User | Size | Time | Date | Statistics |
---|

1 | hallvabo | 191 | 0.0736 | 2010/05/21 00:37:09 | 80B / 68B / 42B |

2 | tobiesque | 258 | 0.0824 | 2010/05/17 06:44:46 | 0B / 182B / 44B |

3 | primo | 287 | 0.0821 | 2010/05/17 04:32:32 | 0B / 138B / 133B |

Rank | User | Size | Time | Date | Statistics |
---|

1 | kozima | 267 | 0.1310 | 2010/05/18 18:49:02 | 0B / 187B / 47B |

Rank | User | Size | Time | Date | Statistics |
---|

1 | youz | 160 | 5.9992 | 2010/05/20 20:16:51 | 0B / 64B / 85B |

Rank | User | Size | Time | Date | Statistics |
---|

1 | pooq | 271 | 0.0689 | *2010/10/08 20:12:25* | 0B / 190B / 49B |

Rank | User | Size | Time | Date | Statistics |
---|

1 | I., S. | 138 | 0.0984 | *2011/03/07 22:36:46* | 0B / 23B / 110B |

Rank | User | Size | Time | Date | Statistics |
---|

1 | pooq | 260 | 0.8929 | *2011/01/28 18:31:13* | 0B / 184B / 44B |

Rank | User | Size | Time | Date | Statistics |
---|

1 | whio | 116 | 0.2359 | *2017/04/29 01:14:49* | 60B / 31B / 23B |

Rank | User | Size | Time | Date | Statistics |
---|

1 | nn | 243 | 0.1082 | 2010/05/18 13:20:33 | 2B / 180B / 57B |

### Language Ranking_

Rank | Lang | User | Size | Score |

1 | gs2 | whio | 116 | 10000 |

2 | J | I., S. | 138 | 8405 |

3 | Arc | youz | 160 | 7250 |

4 | Python | hallvabo | 191 | 6073 |

5 | Vim | nn | 243 | 4773 |

6 | Ruby | @tttttanaka | 254 | 4566 |

7 | R | pooq | 260 | 4461 |

8 | Common LISP | kozima | 267 | 4344 |

9 | Xtal | pooq | 271 | 4280 |

10 | OCaml | m.ukai (embed) | 279 | 4157 |

return to the top page