use_ring: Set Macaulay2 ring

Description Usage Arguments Examples

View source: R/use_ring.R

Description

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

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## 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)

m2r documentation built on July 1, 2020, 11:45 p.m.