File: use_ring.Rd

package info (click to toggle)
r-cran-m2r 1.0.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 488 kB
  • sloc: cpp: 195; python: 59; sh: 14; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 873 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/use_ring.R
\name{use_ring}
\alias{use_ring}
\title{Set Macaulay2 ring}
\usage{
use_ring(ring)
}
\arguments{
\item{ring}{a \code{m2_ring} (see \code{\link[=ring]{ring()}}),
\code{m2_ring_pointer} (see \code{\link[=ring.]{ring.()}}), or a character
string containing the name of a ring in Macaulay2}
}
\description{
\code{use_ring()} sets the default referent ring on the Macaulay2
side using the \code{use} function.
}
\examples{

\dontrun{ 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")

}
}