AngouriMath

Navigation

← Back to list of members

ContainsNode​(AngouriMath.​Entity)

 Method (no overloads)

Summary

Checks if x is a subnode inside this Entity tree.
Optimized for Variable.

Example

using System;
using static AngouriMath.MathS;

var (x, y) = Var("x", "y");
var expr1 = Sin(x + y) - Sqr(x);
Console.WriteLine(expr1);
Console.WriteLine(expr1.ContainsNode(y + x));
Console.WriteLine(expr1.ContainsNode(x + y));

Prints
sin(x + y) - x ^ 2
False
True

























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