use_ring {m2r}R Documentation

Set Macaulay2 ring

Description

use_ring() sets the default referent ring on the Macaulay2 side using the use function.

Usage

use_ring(ring)

Arguments

ring

a m2_ring (see ring()), m2_ring_pointer (see ring.()), or a character string containing the name of a ring in Macaulay2

Examples


## Not run:  requires Macaulay2


##### basic usage
########################################

ring("x", coefring = "QQ")
factor_poly("x^4 + 1")

QQtxyz <- ring("t","x","y","z", coefring = "QQ")
gb("t^4 - x", "t^3 - y", "t^2 - z")

ring("x", "y", "z", "t", coefring = "QQ")
gb("t^4 - x", "t^3 - y", "t^2 - z")

use_ring(QQtxyz)
gb("t^4 - x", "t^3 - y", "t^2 - z")


## End(Not run)

[Package m2r version 1.0.2 Index]