Post History
Vyxal, 6, 5, 4 bytes Źe*∑ Try it Online! Takes input in the format coeffs, x Explained Źe*∑ Ź # Generate range [0, len(coeffs)) e # Calculate x ** [0, len(coeffs) (vectorising) ...
Answer
#9: Post edited
# [Vyxal](https://github.com/Lyxal/Vyxal), <strike>6</strike> 5 bytes:ʁe*∑Takes input in the format `x, coeffs`- ## Explained
- ```
:ʁe*∑:ʁ # Duplicate x and generate the range [0, x)e # Calculate x ** [0, x) (vectorising)* # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length∑ # Sum that list and output- ```
- # [Vyxal](https://github.com/Lyxal/Vyxal), <s>6</s>, <s>5</s>, 4 bytes
- ```
- Źe*∑
- ```
- [Try it Online!](http://lyxal.pythonanywhere.com?flags=&code=%C5%B9e*%E2%88%91&inputs=%5B1.0,%202.0,%203.0,%204.0%5D%0A1.5)
- Takes input in the format `coeffs, x`
- ## Explained
- ```
- Źe*∑
- Ź # Generate range [0, len(coeffs))
- e # Calculate x ** [0, len(coeffs) (vectorising)
- * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length
- ∑ # Sum that list and output
- ```
#8: Post edited
# [Vyxal](https://github.com/Lyxal/Vyxal), <del>6</del> 5 bytes- :ʁe*∑
- Takes input in the format `x, coeffs`
- ## Explained
- ```
- :ʁe*∑
- :ʁ # Duplicate x and generate the range [0, x)
- e # Calculate x ** [0, x) (vectorising)
- * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length
- ∑ # Sum that list and output
- ```
- # [Vyxal](https://github.com/Lyxal/Vyxal), <strike>6</strike> 5 bytes
- :ʁe*∑
- Takes input in the format `x, coeffs`
- ## Explained
- ```
- :ʁe*∑
- :ʁ # Duplicate x and generate the range [0, x)
- e # Calculate x ** [0, x) (vectorising)
- * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length
- ∑ # Sum that list and output
- ```
#6: Post edited
# [Vyxal](https://github.com/Lyxal/Vyxal), ~~6~~ 5 bytes- :ʁe*∑
- Takes input in the format `x, coeffs`
- ## Explained
- ```
- :ʁe*∑
- :ʁ # Duplicate x and generate the range [0, x)
- e # Calculate x ** [0, x) (vectorising)
- * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length
- ∑ # Sum that list and output
- ```
- # [Vyxal](https://github.com/Lyxal/Vyxal), <del>6</del> 5 bytes
- :ʁe*∑
- Takes input in the format `x, coeffs`
- ## Explained
- ```
- :ʁe*∑
- :ʁ # Duplicate x and generate the range [0, x)
- e # Calculate x ** [0, x) (vectorising)
- * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length
- ∑ # Sum that list and output
- ```
#5: Post edited
# [Vyxal](https://github.com/Lyxal/Vyxal), <s>.6.</s> 5 bytes- :ʁe*∑
- Takes input in the format `x, coeffs`
- ## Explained
- ```
- :ʁe*∑
- :ʁ # Duplicate x and generate the range [0, x)
- e # Calculate x ** [0, x) (vectorising)
- * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length
- ∑ # Sum that list and output
- ```
- # [Vyxal](https://github.com/Lyxal/Vyxal), ~~6~~ 5 bytes
- :ʁe*∑
- Takes input in the format `x, coeffs`
- ## Explained
- ```
- :ʁe*∑
- :ʁ # Duplicate x and generate the range [0, x)
- e # Calculate x ** [0, x) (vectorising)
- * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length
- ∑ # Sum that list and output
- ```
#4: Post edited
# [Vyxal](https://github.com/Lyxal/Vyxal), <s>6</s> 5 bytes- :ʁe*∑
- Takes input in the format `x, coeffs`
- ## Explained
- ```
- :ʁe*∑
- :ʁ # Duplicate x and generate the range [0, x)
- e # Calculate x ** [0, x) (vectorising)
- * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length
- ∑ # Sum that list and output
- ```
- # [Vyxal](https://github.com/Lyxal/Vyxal), <s>.6.</s> 5 bytes
- :ʁe*∑
- Takes input in the format `x, coeffs`
- ## Explained
- ```
- :ʁe*∑
- :ʁ # Duplicate x and generate the range [0, x)
- e # Calculate x ** [0, x) (vectorising)
- * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length
- ∑ # Sum that list and output
- ```
#3: Post edited
# [Vyxal](https://github.com/Lyxal/Vyxal), 6 bytes$:ʁe*∑Takes input in the format `coeffs, x`- ## Explained
```$:ʁe*∑$ # Swap the two inputs so that the stack is [coeffs, x]:ʁ # Duplicate x and generate the range [0, x)e # Calculate x ** [0, x) (vectorising)* # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length∑ # Sum that list and output- ```
- # [Vyxal](https://github.com/Lyxal/Vyxal), <s>6</s> 5 bytes
- :ʁe*∑
- Takes input in the format `x, coeffs`
- ## Explained
- ```
- :ʁe*∑
- :ʁ # Duplicate x and generate the range [0, x)
- e # Calculate x ** [0, x) (vectorising)
- * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length
- ∑ # Sum that list and output
- ```
#2: Post edited
- # [Vyxal](https://github.com/Lyxal/Vyxal), 6 bytes
- $:ʁe*∑
- ## Explained
- ```$:ʁe*∑
- $ # Swap the two inputs so that the stack is [coeffs, x]
- :ʁ # Duplicate x and generate the range [0, x)
- e # Calculate x ** [0, x) (vectorising)
- * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length
- ∑ # Sum that list and output
- ```
- # [Vyxal](https://github.com/Lyxal/Vyxal), 6 bytes
- $:ʁe*∑
- Takes input in the format `coeffs, x`
- ## Explained
- ```$:ʁe*∑
- $ # Swap the two inputs so that the stack is [coeffs, x]
- :ʁ # Duplicate x and generate the range [0, x)
- e # Calculate x ** [0, x) (vectorising)
- * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length
- ∑ # Sum that list and output
- ```
#1: Initial revision
# [Vyxal](https://github.com/Lyxal/Vyxal), 6 bytes $:ʁe*∑ ## Explained ```$:ʁe*∑ $ # Swap the two inputs so that the stack is [coeffs, x] :ʁ # Duplicate x and generate the range [0, x) e # Calculate x ** [0, x) (vectorising) * # Multiply the coefficients by the exponated x's. The lists are extended with 0s to be the same length ∑ # Sum that list and output ```