mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-10 23:27:21 +00:00
14 lines
972 B
C#
14 lines
972 B
C#
using AngouriMath;
|
|
|
|
namespace AIStudio.Tools.Mathematics;
|
|
|
|
/// <summary>
|
|
/// The value of an expression without variables, with as many digits as the computation vouches for.
|
|
/// </summary>
|
|
/// <param name="Exact">The exact value when it is rational, or complex with rational parts; otherwise null.</param>
|
|
/// <param name="Value">The value at the working precision, before it is rounded to its digits.</param>
|
|
/// <param name="Digits">How many significant digits of the value are certain; zero when none is.</param>
|
|
/// <param name="Approximate">Whether a part of the value was integrated numerically.</param>
|
|
/// <param name="EstimatedError">The estimated absolute error of an approximate value; null for any other.</param>
|
|
/// <param name="Issues">What the model has to know about the value.</param>
|
|
public sealed record NumericValue(Entity.Number? Exact, Entity.Number.Complex Value, int Digits, bool Approximate, double? EstimatedError, IReadOnlyList<string> Issues); |