AngouriMath

Navigation

← Back to list of members

IsSymbolic

 Property

Summary

Checks whether the given expression contains variable

Example

using System;
using static AngouriMath.MathS;

var (x, y) = Var("x", "y");
var expr1 = Sin(x + y) - Sqr(x);
Console.WriteLine(expr1.IsSymbolic);
var expr2 = Sin(5) - 22;
Console.WriteLine(expr2.IsSymbolic);
var expr3 = Sin(5) - 22 / x;
Console.WriteLine(expr3.IsSymbolic);

Prints
True
False
True

























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