AngouriMath

Navigation

← Back to list of members

Codomain

 Property

Summary

Coomain of an expression
If its node value is outside of the domain when evaluated,
it turns into a NaN

Example

using System;
using AngouriMath.Core;
using static AngouriMath.MathS;

var expr = Sqrt(-1);
Console.WriteLine(expr);
Console.WriteLine(expr.Codomain);
Console.WriteLine(expr.Evaled);
Console.WriteLine("------------------------------------");
var newExpr = expr.WithCodomain(Domain.Real);
Console.WriteLine(newExpr);
Console.WriteLine(newExpr.Codomain);
Console.WriteLine(newExpr.Evaled);

Prints
sqrt(-1)
Complex
i
------------------------------------
sqrt(-1)
Real
NaN

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online