AreEqualNumerically compares without a tolerance, so equal expressions read as unequal
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by locating MathS.UnsafeAndInternal.AreEqualNumerically(a, b) and reading how it chooses its check points and compares evaluated values. Reproduce the reported case with the integral expression and its derivative at -100 and 100, then investigate a relative tolerance appropriate to evaluation precision; the MCP server's 1e-6 tolerance is a comparison point. Done means the equal expressions compare as equal without masking meaningful differences.
索引モデルが issue の本文から書いたものです。
説明
MathS.UnsafeAndInternal.AreEqualNumerically(a, b) evaluates both sides at its check points and compares the values with !=, with no tolerance. Two equal expressions computed by different routes differ in their last digits, and are reported unequal.
∫ x ln(x) dx, differentiated back, is 2 x (-1/4 + ln(x)/2) + 1/x * 2/4 * x^2, which is x ln(x) wherever both are defined. At the check points -100 and 100 the two values compare unequal, while their difference evaluates to 0, so AreEqualNumerically returns false.
A relative tolerance scaled to the evaluation's precision would answer this. The MCP server (amcli mcp) compares with a relative tolerance of 1e-6 instead.
- 主要言語
- C#
- スター
- 831
- フォーク
- 79
- 平均マージ
- 2時間 22分
- マージ済み PR(30日)
- 507
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ASC-Community/AngouriMath のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
ASC-Community/AngouriMath#1807 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ASC-Community/AngouriMath#1692 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
ASC-Community/AngouriMath#1690 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
ASC-Community/AngouriMath#1689 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ASC-Community/AngouriMath#1684 ·
メンテナーはふだん 1 日以内に返信
ASC-Community/AngouriMath の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
stryker-mutator/stryker-net#3892 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MobiFlight/MobiFlight-Connector#3419 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Kryptos-FR/MarkView.Avalonia#105 ·
メンテナーはふだん 1 日以内に返信
-
[辞書]オープン提案 辞書
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
microsoft/fluentui-blazor#5410 ·
メンテナーはふだん 1 日以内に返信