(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=44088392

Hacker News 最新 | 往期 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 仅用数据类型实现复数和FFT (2023) (gist.github.com) surprisetalk 1天前 18分 | 隐藏 | 往期 | 收藏 | 2条评论 LegionMammal978 1天前 [–] 对于有符号整数,采用平衡三进制有点奇怪,似乎二进制补码整数也能同样适用。(也就是说,从基元 0 = ...00000 和 -1 = ...11111 开始,从中构造 2x 和 2x+1。) 回复 aleph_minus_one 1天前 | 父评论 [–] 或者简单地使用以-2为底的二进制(指数字0,1)数。 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | YC申请 | 联系我们 搜索:

相关文章
  • 仅用数据类型实现复数和FFT (2023) 2025-05-25
  • (评论) 2025-03-19
  • 2025-05-21
  • 2025-05-22
  • 2025-05-12

  • 原文
    Hacker News new | past | comments | ask | show | jobs | submit login
    Implementing complex numbers and FFT with just datatypes (2023) (gist.github.com)
    18 points by surprisetalk 1 day ago | hide | past | favorite | 2 comments










    Balanced ternary is an odd choice for signed integers, when it seems like two's-complement integers would work just as well here. (That is, start with primitives 0 = ...00000 and -1 = ...11111, and construct 2x and 2x+1 from those.)


    Or simply use binary (in the sense of digits 0,1) numbers with respect to base -2.






    Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



    Search:
    联系我们 contact @ memedata.com