Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

AreEqualNumerically compares without a tolerance, so equal expressions read as unequal

Đang mở
#1,674 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C#
Star
831
Fork
79
Merge trung bình
2 giờ 22 phút
Pull request đã merge (30 ngày)
507

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ASC-Community/AngouriMath

Tất cả issue của ASC-Community/AngouriMath

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.