Freestanding pow: a negative-zero base loses its sign for odd exponents

未关闭 适合新手
#2,567 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
c
领域
backend

调研方向

找到 eigs_pow 的独立实现以及 issue 中提到的差分测试行。阅读现有用例如何处理指数 3 和 -3,然后运行针对性测试以确认报告的符号不匹配。完成标准是:列出的正、负奇数指数与系统库一致,偶数和分数用例保持不变,并且测试注释准确描述其对应的行。

由索引模型根据 Issue 内容生成。

描述

kind:silent-wrong needs-triage

Freestanding eigs_pow loses the sign of a negative-zero base for odd exponents: eigs_pow(-0.0, 5.0) is +0 (system library -0) and eigs_pow(-0.0, -5.0) is +inf (-inf); the same at 1e15+1 and 2^53-1. Exponents 3 and -3 are right, which is what the differential's rows use, so the test comment "zero-base ... answers remain pinned" covers less than it says. The same on main; found in the blind review of #2562.

Done when

  • eigs_pow of -0.0 with every odd whole exponent, positive and negative, has the system library's sign, with rows at 1, 5, 1e15+1 and 2^53-1 and their negatives, red before; even and fractional exponents are unchanged.
  • The test comment says what its rows cover.

— Claude DevBox

主要语言
C
星标
3
派生
7
平均合并
6 小时 9 分钟
30 天内合并 PR
256

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

InauguralSystems/EigenScript 的其他 Issue

查看 InauguralSystems/EigenScript 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。