## Set

← Back to list of classes

## Description

Summary

https://en.wikipedia.org/wiki/Set_(mathematics) A set might be a set operator, conditinal set, finite set, or interval

## Members

• ### Contains (AngouriMath. Entity)

Method

Summary

Checks that an element is in the set
Unless you are confident about the set,
it is recommended to use TryContains(AngouriMath.Entity,System.Boolean@) instead

Exception "ElementInSetAmbiguousException"

Thrown when

• ### Empty

Field

Summary

Returns an empty set
You can use it to compare sets to it
or to avoid allocations

• ### Filter (AngouriMath. Entity, AngouriMath. Entity. Variable)

Method

Summary

Adds a constraint to every element of a set.
1) For a finite set, it will add Provided for every element
2) For an interval and special set, it will wrap it with a cset (e. g. [a; b].Filter(x > 0, x) -> { x : x in [a; b] and x > 0 })
3) For a cset, it will add a predicate (e. g. { y : y2 = 3 }.Filter(x > 0, x) -> { y : y2 = 3 and y > 0 })

• ### IsSetEmpty

Property

Summary

Checks that a set does not contain any elements

• ### IsSetFinite

Property

Summary

Checks that a set is finite

• ### op_Implicit (System. String)~AngouriMath. Entity. Set

Method

Summary

Converts from string to specifically set

Parameter "expr"

From where to parse

• ### TryContains (AngouriMath. Entity, System. Boolean@)

Method

Summary

Checks whether the given element is in the set

Parameter "entity"

The element to find in the set

Parameter "contains"

The result whether it is in the set or not

Returns

Whether this is possible to determine that it contains the given element

2019-2021 Angouri · Project's repo · Site's repo · Octicons