Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

77%
+5 −0
Challenges Evaluate a single variable polynomial equation

Japt -x, 6 5 bytes Ë*VpE Try it Ë*VpE :Implicit input of array U and float V Ë :Map each element D at 0-based index E * : Multiply D by VpE : V raised to the pow...

posted 4y ago by Shaggy‭  ·  edited 4y ago by Shaggy‭

Answer
#4: Post edited by user avatar Shaggy‭ · 2020-11-17T18:16:40Z (about 4 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-x`](https://codegolf.meta.stackexchange.com/a/14339/), <del>6</del> 5 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Ë*VpE
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LXg&code=yypWcEU&input=WzFdCjE4Mg)
  • Ë*VpE :Implicit input of array U and float V
  • Ë :Map each element D at 0-based index E
  • * : Multiply D by
  • VpE : V raised to the power of E
  • :Implicit output of sum of resulting array
  • # [Japt](https://github.com/ETHproductions/japt) [`-x`](https://codegolf.meta.stackexchange.com/a/14339/), <del>6</del> <ins>5</ins> [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Ë*VpE
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LXg&code=yypWcEU&input=WzFdCjE4Mg)
  • Ë*VpE :Implicit input of array U and float V
  • Ë :Map each element D at 0-based index E
  • * : Multiply D by
  • VpE : V raised to the power of E
  • :Implicit output of sum of resulting array
#3: Post edited by user avatar Shaggy‭ · 2020-11-17T18:16:22Z (about 4 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-x`](https://codegolf.meta.stackexchange.com/a/14339/), <s>6</s> 5 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Ë*VpE
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LXg&code=yypWcEU&input=WzFdCjE4Mg)
  • Ë*VpE :Implicit input of array U and float V
  • Ë :Map each element D at 0-based index E
  • * : Multiply D by
  • VpE : V raised to the power of E
  • :Implicit output of sum of resulting array
  • # [Japt](https://github.com/ETHproductions/japt) [`-x`](https://codegolf.meta.stackexchange.com/a/14339/), <del>6</del> 5 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Ë*VpE
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LXg&code=yypWcEU&input=WzFdCjE4Mg)
  • Ë*VpE :Implicit input of array U and float V
  • Ë :Map each element D at 0-based index E
  • * : Multiply D by
  • VpE : V raised to the power of E
  • :Implicit output of sum of resulting array
#2: Post edited by user avatar Shaggy‭ · 2020-11-17T15:41:06Z (about 4 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-x`](https://codegolf.meta.stackexchange.com/a/14339/), 6 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • íÈ*VpY
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LXg&code=7cgqVnBZ&input=WzFdCjE4Mg)
  • íÈ*VpY :Implicit input of array U and float V
  • í :Interleave U with its 0-based indices
  • È :Pass each pair X & Y through the following function
  • * : Multiply X by
  • VpY : V raised to the power of Y
  • :Implicit output of sum of resulting array
  • # [Japt](https://github.com/ETHproductions/japt) [`-x`](https://codegolf.meta.stackexchange.com/a/14339/), <s>6</s> 5 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Ë*VpE
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LXg&code=yypWcEU&input=WzFdCjE4Mg)
  • Ë*VpE :Implicit input of array U and float V
  • Ë :Map each element D at 0-based index E
  • * : Multiply D by
  • VpE : V raised to the power of E
  • :Implicit output of sum of resulting array
#1: Initial revision by user avatar Shaggy‭ · 2020-11-17T12:23:50Z (about 4 years ago)
# [Japt](https://github.com/ETHproductions/japt) [`-x`](https://codegolf.meta.stackexchange.com/a/14339/), 6 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)

    íÈ*VpY

[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LXg&code=7cgqVnBZ&input=WzFdCjE4Mg)

    íÈ*VpY     :Implicit input of array U and float V
    í          :Interleave U with its 0-based indices
     È         :Pass each pair X & Y through the following function
      *        :  Multiply X by
       VpY     :  V raised to the power of Y
               :Implicit output of sum of resulting array