Skip to main content
added 653 characters in body
Source Link
Asone Tuhid
  • 2.4k
  • 8
  • 22

Ruby, 71 6767 65 bytes

->g{Math.methods.find{|h|g[0g[0.5]==Math.send(h_1,0.5)rescue p}||:acosh}

Try it online! (2 extra bytes because TIO doesn't support _1 syntax)

Non-competing but if Math worked like CMath (which it should), then this could be 57 bytes

->g{Math.methods.find{g[0.5]==Math.send(_1,0.5)rescue p}}

Try it online! (2 extra bytes because TIO doesn't support _1 syntax)

Ruby, 71 67 bytes

->g{Math.methods.find{|h|g[0.5]==Math.send(h,0.5)rescue p}||:acosh}

Try it online!

Ruby, 71 67 65 bytes

->g{Math.methods.find{g[0.5]==Math.send(_1,0.5)rescue p}||:acosh}

Try it online! (2 extra bytes because TIO doesn't support _1 syntax)

Non-competing but if Math worked like CMath (which it should), then this could be 57 bytes

->g{Math.methods.find{g[0.5]==Math.send(_1,0.5)rescue p}}

Try it online! (2 extra bytes because TIO doesn't support _1 syntax)

added 2 characters in body
Source Link
Asone Tuhid
  • 2.4k
  • 8
  • 22

Ruby, 7171 67 bytes

->g{Math.methods.find do|h|g[0{|h|g[0.5]==Math.send(h,0.5);rescue;end||rescue p}||:acosh}

Try it online!Try it online!

Ruby, 71 bytes

->g{Math.methods.find do|h|g[0.5]==Math.send(h,0.5);rescue;end||:acosh}

Try it online!

Ruby, 71 67 bytes

->g{Math.methods.find{|h|g[0.5]==Math.send(h,0.5)rescue p}||:acosh}

Try it online!

Source Link
Asone Tuhid
  • 2.4k
  • 8
  • 22

Ruby, 71 bytes

->g{Math.methods.find do|h|g[0.5]==Math.send(h,0.5);rescue;end||:acosh}

Try it online!