numericalSourceSample(I, W, s)
numericalSourceSample(I, p, s)
numericalSourceSample(I, W)
numericalSourceSample(I, p)
numericalSourceSample(I, s)
numericalSourceSample(I)
This method computes a list of sample points on a variety numerically. If $I$ is the zero ideal in a polynomial ring of dimension $n$, then an $n$-tuple of random elements in the ground field is returned. Otherwise, a numerical irreducible decomposition of $I$ is computed, which is then used to sample points.
If the number of points $s$ is unspecified, then it is assumed that $s = 1$.
One can provide a witness set for $V(I)$ if a witness set is already known.
In the example below, we sample a point from $A^3$ and then $3$ points from $V(x^2 + y^2 + z^2 - 1)$ in $A^3$.
|
|
|
|
|
As of version 2.2.0 (Nov 2020), it is also possible to specify a custom sampling function: namely, one can specify the value of the option Software to be a function which takes in the ideal $I$ and returns a point.
The following example shows how to sample a point from SO(5, $\mathbb{R}$).
|
|
|
|
|
|
|
Since numerical irreducible decompositions are done over CC, if $I$ is not the zero ideal, then by default the output will be a point in complex space (regardless of the ground field of the ring of $I$).
The object numericalSourceSample is a method function with options.