Post History
BQN, 13 bytes {+ยด(๐จโโโ ๐ฉ)ร๐ฉ} { } # fn +ยด # sum reduce (๐จโโโ ๐ฉ) # x^i for each term ร๐ฉ # times each coefficient Try it
Answer
#2: Post edited
# BQN, 14 bytes- ```bqn
{+ยด(๐จโโโ ๐ฉ)รยจ๐ฉ}{ } # fn+ยด # sum reduce(๐จโโโ ๐ฉ) # x^i for each termรยจ๐ฉ # times each coefficient- ```
- [Try it](https://mlochbaum.github.io/BQN/try.html#code=RuKGkHsrwrQo8J2VqOKLhuKGleKJoPCdlakpw5fCqPCdlal9Cgp44oaQMC41Cm5z4oaQ4p+oMi41LDIuMOKfqQoKeCBGIG5z)
- # BQN, 13 bytes
- ```bqn
- {+ยด(๐จโโโ ๐ฉ)ร๐ฉ}
- { } # fn
- +ยด # sum reduce
- (๐จโโโ ๐ฉ) # x^i for each term
- ร๐ฉ # times each coefficient
- ```
- [Try it](https://mlochbaum.github.io/BQN/try.html#code=RuKGkHsrwrQo8J2VqOKLhuKGleKJoPCdlakpw5fCqPCdlal9Cgp44oaQMC41Cm5z4oaQ4p+oMi41LDIuMOKfqQoKeCBGIG5z)
#1: Initial revision
# BQN, 14 bytes ```bqn {+ยด(๐จโโโ ๐ฉ)รยจ๐ฉ} { } # fn +ยด # sum reduce (๐จโโโ ๐ฉ) # x^i for each term รยจ๐ฉ # times each coefficient ``` [Try it](https://mlochbaum.github.io/BQN/try.html#code=RuKGkHsrwrQo8J2VqOKLhuKGleKJoPCdlakpw5fCqPCdlal9Cgp44oaQMC41Cm5z4oaQ4p+oMi41LDIuMOKfqQoKeCBGIG5z)