Skip to main content
added 28 characters in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

Mathematica, 98101 bytes

a-a
a/a
⌊E⌋
⌈E⌉
⌈π⌉
⌊E+E⌋
⌈E+E⌉
⌊E*E⌋
⌈E*E⌉
⌈E*π⌉
⌈π*π⌉
⌊π*π^π/E⌋

I'm pretty sure some of these are suboptimal. Those rounding brackets are really expensive.

For consistency, the first onetwo could also be E-E and E/E of course, but I thought it's quite nifty to get 0 and 1 from a computation with undefined variables.

Mathematica, 98 bytes

a/a
⌊E⌋
⌈E⌉
⌈π⌉
⌊E+E⌋
⌈E+E⌉
⌊E*E⌋
⌈E*E⌉
⌈E*π⌉
⌈π*π⌉
⌊π*π^π/E⌋

I'm pretty sure some of these are suboptimal. Those rounding brackets are really expensive.

For consistency, the first one could also be E/E of course, but I thought it's quite nifty to get 1 from a computation with undefined variables.

Mathematica, 101 bytes

a-a
a/a
⌊E⌋
⌈E⌉
⌈π⌉
⌊E+E⌋
⌈E+E⌉
⌊E*E⌋
⌈E*E⌉
⌈E*π⌉
⌈π*π⌉
⌊π*π^π/E⌋

I'm pretty sure some of these are suboptimal. Those rounding brackets are really expensive.

For consistency, the first two could also be E-E and E/E of course, but I thought it's quite nifty to get 0 and 1 from a computation with undefined variables.

Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

Mathematica, 98 bytes

a/a
⌊E⌋
⌈E⌉
⌈π⌉
⌊E+E⌋
⌈E+E⌉
⌊E*E⌋
⌈E*E⌉
⌈E*π⌉
⌈π*π⌉
⌊π*π^π/E⌋

I'm pretty sure some of these are suboptimal. Those rounding brackets are really expensive.

For consistency, the first one could also be E/E of course, but I thought it's quite nifty to get 1 from a computation with undefined variables.