Skip to main content
Commonmark migration
Source Link

#Par, 8 bytes

Par, 8 bytes

✶[″℗↔π*+

Accepts input as (1 2 3) ##Explanation

Explanation

               ## [implicit: read line]
✶              ## Parse input as array of numbers
[              ## Map
 ″             ## Duplicate
 ℗             ## e to the power
 ↔             ## Swap
 π*            ## Multiply by π
 +             ## Add

#Par, 8 bytes

✶[″℗↔π*+

Accepts input as (1 2 3) ##Explanation

               ## [implicit: read line]
✶              ## Parse input as array of numbers
[              ## Map
 ″             ## Duplicate
 ℗             ## e to the power
 ↔             ## Swap
 π*            ## Multiply by π
 +             ## Add

Par, 8 bytes

✶[″℗↔π*+

Accepts input as (1 2 3)

Explanation

               ## [implicit: read line]
✶              ## Parse input as array of numbers
[              ## Map
 ″             ## Duplicate
 ℗             ## e to the power
 ↔             ## Swap
 π*            ## Multiply by π
 +             ## Add
Source Link
Ypnypn
  • 10.9k
  • 2
  • 31
  • 80

#Par, 8 bytes

✶[″℗↔π*+

Accepts input as (1 2 3) ##Explanation

               ## [implicit: read line]
✶              ## Parse input as array of numbers
[              ## Map
 ″             ## Duplicate
 ℗             ## e to the power
 ↔             ## Swap
 π*            ## Multiply by π
 +             ## Add