3 deleted 125 characters in body
source | link

MY, 7 bytes

’2ō"8↑↵

Won't work on TIO due to it not being pulled. (). Also, my local sympy is messed up, it doesn't have acsch, while TIO's MY's sympy does have acsch. If MY had implicit IO, MY would've won this challenge with E3. for sure!Try it online!

How?

  • , decrement the top of the stack (0 is popped if empty, making the stack [-1]). (Same symbol as Jelly)
  • 2, push 2.
  • ō, since the top of the stack is two, discard the 2, pop n, then push acos(n) (in radians, this gives pi, this symbol is o with a negative sign on top of it. o (for normal trig) comes from APL).
  • ", pop the top element of the stack and push it as a string.
  • 8, push 8.
  • , pop a then b, push b[:a] (This is another symbol taken from APL).
  • , output with a new line (OUTPUT <- STACK).

MY, 7 bytes

’2ō"8↑↵

Won't work on TIO due to it not being pulled. (). Also, my local sympy is messed up, it doesn't have acsch, while TIO's MY's sympy does have acsch. If MY had implicit IO, MY would've won this challenge with E3. for sure!

How?

  • , decrement the top of the stack (0 is popped if empty, making the stack [-1]). (Same symbol as Jelly)
  • 2, push 2.
  • ō, since the top of the stack is two, discard the 2, pop n, then push acos(n) (in radians, this gives pi, this symbol is o with a negative sign on top of it. o (for normal trig) comes from APL).
  • ", pop the top element of the stack and push it as a string.
  • 8, push 8.
  • , pop a then b, push b[:a] (This is another symbol taken from APL).
  • , output with a new line (OUTPUT <- STACK).

MY, 7 bytes

’2ō"8↑↵

Try it online!

How?

  • , decrement the top of the stack (0 is popped if empty, making the stack [-1]). (Same symbol as Jelly)
  • 2, push 2.
  • ō, since the top of the stack is two, discard the 2, pop n, then push acos(n) (in radians, this gives pi, this symbol is o with a negative sign on top of it. o (for normal trig) comes from APL).
  • ", pop the top element of the stack and push it as a string.
  • 8, push 8.
  • , pop a then b, push b[:a] (This is another symbol taken from APL).
  • , output with a new line (OUTPUT <- STACK).
2 added 56 characters in body
source | link

MYMY, 7 bytes

’2ō"8↑↵

Won't work on TIO due to it not being pulled. (). Also, my local sympy is messed up, it doesn't have acsch, while TIO's MY's sympy does have acsch. If MY had implicit IO, MY would've won this challenge with E3. for sure!

How?

  • , decrement the top of the stack (0 is popped if empty, making the stack [-1]). (Same symbol as Jelly)
  • 2, push 2.
  • ō, since the top of the stack is two, discard the 2, pop n, then push acos(n) (in radians, this gives pi, this symbol is o with a negative sign on top of it. o (for normal trig) comes from APL).
  • ", pop the top element of the stack and push it as a string.
  • 8, push 8.
  • , pop a then b, push b[:a] (This is another symbol taken from APL).
  • , output with a new line (OUTPUT <- STACK).

MY, 7 bytes

’2ō"8↑↵

Won't work on TIO due to it not being pulled. (). Also, my local sympy is messed up, it doesn't have acsch, while TIO's MY's sympy does have acsch. If MY had implicit IO, MY would've won this challenge with E3. for sure!

How?

  • , decrement the top of the stack (0 is popped if empty, making the stack [-1]). (Same symbol as Jelly)
  • 2, push 2.
  • ō, since the top of the stack is two, discard the 2, pop n, then push acos(n) (in radians, this gives pi, this symbol is o with a negative sign on top of it. o (for normal trig) comes from APL).
  • ", pop the top element of the stack and push it as a string.
  • 8, push 8.
  • , pop a then b, push b[:a] (This is another symbol taken from APL).
  • , output with a new line (OUTPUT <- STACK).

MY, 7 bytes

’2ō"8↑↵

Won't work on TIO due to it not being pulled. (). Also, my local sympy is messed up, it doesn't have acsch, while TIO's MY's sympy does have acsch. If MY had implicit IO, MY would've won this challenge with E3. for sure!

How?

  • , decrement the top of the stack (0 is popped if empty, making the stack [-1]). (Same symbol as Jelly)
  • 2, push 2.
  • ō, since the top of the stack is two, discard the 2, pop n, then push acos(n) (in radians, this gives pi, this symbol is o with a negative sign on top of it. o (for normal trig) comes from APL).
  • ", pop the top element of the stack and push it as a string.
  • 8, push 8.
  • , pop a then b, push b[:a] (This is another symbol taken from APL).
  • , output with a new line (OUTPUT <- STACK).
1
source | link

MY, 7 bytes

’2ō"8↑↵

Won't work on TIO due to it not being pulled. (). Also, my local sympy is messed up, it doesn't have acsch, while TIO's MY's sympy does have acsch. If MY had implicit IO, MY would've won this challenge with E3. for sure!

How?

  • , decrement the top of the stack (0 is popped if empty, making the stack [-1]). (Same symbol as Jelly)
  • 2, push 2.
  • ō, since the top of the stack is two, discard the 2, pop n, then push acos(n) (in radians, this gives pi, this symbol is o with a negative sign on top of it. o (for normal trig) comes from APL).
  • ", pop the top element of the stack and push it as a string.
  • 8, push 8.
  • , pop a then b, push b[:a] (This is another symbol taken from APL).
  • , output with a new line (OUTPUT <- STACK).