导航

    蓝鲸ROS机器人论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 热门
    ROS交流群
    ROS Group
    产品服务
    Product Service
    开源代码库
    Github
    官网
    Official website
    技术交流
    Technological exchanges
    激光雷达
    LIDAR
    ROS教程
    ROS Tourials
    深度学习
    Deep Learning
    机器视觉
    Computer Vision

    在Github上发现了一个5神教

    杂谈
    lamda演算 github five lamda calculus
    1
    1
    3602
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • weijiz
      weijiz 最后由 编辑

      今天在逛Github 的时候发现了一个5神教。看了之后笑死我了。这是一个专门给5写的一个库。里面包含了各种写给5用的函数库。

      // 加
      five() + five(); // 10
      // 减
      five() - five(); // 0
      // 乘
      five() * five();
      // 除
      five() / five();
      

      还有一些格式转化的函数

      five.upHigh() // ⁵
      five.downLow() // ₅
      five.tooSlow() // 5, with a ~500 millisecond delay
      five.roman() // V
      five.morseCode() // .....
      five.negative() // -5
      five.loud() // FIVE
      five.loud('piglatin') // IVEFAY
      five.smooth() // S
      five.mdFive() // 30056e1cab7a61d256fc8edd970d14f5
      

      看到这个就忍不住想问,这个库到底是干什么的?
      这个库就是写着玩的,实际上什么都干不了。

      看到这个项目的issue的时候,更是好笑了。

      比如说这个

      petty commented on Jul 18, 2014
      On the one hand … this is great, quite literally.

      But after searching Github, I’ve been unable to find the rest of the set. For example, what about three()? and what about constants, like pi()?

      I understand that making all numbers overly complicated could take time, so what’s the ETA?

      Joezo commented on Jul 18, 2014
      The beauty of five is that you can make any number you want.

      Want three()? Well that’s just
      (five() * five() - five() - five()) / five() or (five() + five() + five())/five()

      Want six()? five() + (five()/five())

      Want zero()? five() - five()
      🎉 1

      dufferzafar commented on Jul 18, 2014
      @Joezo You left pi 😜

      teuneboon commented on Jul 18, 2014
      @dufferzafar we can estimate pi: ( (five() * five() ) - ( ( five() + five() + five() ) / five() ) ) / ( five() + ( ( five() + five() ) / five() ) )

      shackpank commented on Jul 18, 2014
      @dufferzafar easiest way to get pi is through builtin Math object like this

      var five = require('five');
      Math[Buffer(((five() * five()) - (five() / five()) + ((five() * ((five() / five()) + (five() / five()))) * five() * five() * five()) * (five() - (five() / five())) + (five() * five())).toString(), 'hex').toString('utf8')]
      

      dufferzafar commented on Jul 18, 2014
      If this package useful? #82

      rex commented on Jun 27, 2015
      @shackpank I have tears in my eyes and my belly hurts from laughing. Far and away the best response ever made to any question ever asked in the history of GitHub.

      May five() live forever

      现在所有的数字他们都想用5来替换。他们已经找到了用5来替换pi的方式。五号神教已经正式成立了。

      *May five() live forever

      但是这个还有更好玩的玩法。现在的加减乘除运算还都是用的原来的符号。如果把整个系统改成Lamda演算的形式,这些符号都是能够用5来表示的。这样就变成一个彻底的五号神教了。

      1 条回复 最后回复 回复 引用 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2015-2023 BlueWhale community