Search
BQN, 13 bytes {+Β΄(π¨βββ π©)Γπ©} { } # fn +Β΄ # sum reduce (π¨βββ π©) # x^i for each term Γπ© # times each coefficient Try it
APL (Dyalog Unicode), 15 bytesSBCS With many thanks to Marshall Lochbaum and dzaima for their help debugging and golfing this answer {β΅βͺββ΅*2|β΅+.5}β£β‘ {β΅βͺββ΅*2|β΅+.5}β£β‘ β β΅ is our input of eith...
BQN, 107 bytes Aβ©CβAβΒ―Ο{_π£_:@;/βπ©.y?πβΏβπβ¨π€,β·β©πππ½π¨πΎπ}βΛβΛ¨´Λ`(β’Jsββββ½βΎββΒ«β»·β§ββ¨ββββββΎΛβ₯βββ’ββ£Β¬!|β‘β’/β₯ββ =βΈβ₯ββββΆβ><ββββΌβ+-ΓΓ·)β# BQN doesn't have keywords but primitive symbols are reserved. It's ...
BQN, 37 bytes βββ½ββΎΛΒ΄(β{1βΈββΈββ+`ββ½βπ©β2}β₯'@'βΈ+)Β¨ββ½ββ -3 thanks to dzaima The output isn't the same as the example but I think it's still correct if I understand the challenge correctly. Result...
APL (Dyalog Unicode), 31 bytes βββ(14β(2β·x),β¨β½)Β¨,\1β·xββ13 2β΄βA Try it online! Lot worse than the BQN answer. βββ(14β(2β·x),β¨β½)Β¨,\1β·xββ13 2β΄βA βA β String of up...
- ← Previous
- 1
- 2
- Next →