View source: R/membership_test.R
membership_test | R Documentation |
Test if specified points lie on components of a numerical irreducible decomposition.
membership_test(out, points, dir = tempdir(), ...)
out |
the output of a positive-dimension run from bertini |
points |
a matrix of points to be tested |
dir |
directory to place the files in, without an ending / |
... |
additional configuration arguments to be changed |
a 'glue' object that contains the decision of each point
if (has_bertini()) { # see ?bertini # run initial numerical irreducible decomposition for equation xy = 0 input <- bertini_input("x*y") input <- modify_config(input, tracktype = 1) out <- bertini(input, output = "pos_dim") # test if the points (0,0), (1,0), (0,1), (1,1) are in the solution set pts_to_test <- matrix(c(0,0,1,0,0,1,1,1), nrow = 4, ncol = 2, byrow = TRUE) membership_test(out, pts_to_test) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.