15
2
For once, I was doing some real work, updating old code, and bumped into an expression that is equivalent to what would be written as πx + ex in good old-fashioned math. I thought it would be possible to write it shorter than it was written in the language I work with (APL), and therefore present this very simple challenge:
Write a function or program that (by any means) accepts zero or more numbers, and returns (by any means) the result of the above expression for x = each of the given numbers with at least 3 significant digits for each result.
If your language does not have π and/or e, use the values 3.142 and 2.718.
Scoring is number of bytes, so preface your answer with # LanguageName, 00 bytes
.
Standard loop-holes are not allowed.
Edit: Now the solution I came up with, ○+*
, has been found. The original code was (○x)+*x
.
5What domain are the inputs drawn from? Integers, reals, complex numbers? – Martin Ender – 2015-12-21T18:36:14.770
1@MartinBüttner Whatever you like, as long as the output isn't restricted to integer. – Adám – 2015-12-21T18:41:07.983