# Package sagbi/SB.IsSAGBIOf

From ApCoCoAWiki

< Package sagbi

Revision as of 12:47, 26 October 2020 by Andraschko (talk | contribs) (Created page with "{{Version|2}} <command> <title>SB.IsSAGBIOf</title> <short_description>This function checks whether a given list of polynomials is a SAGBI basis of a specific subalgebra.<...")

This article is about a function from ApCoCoA-2. |

## SB.IsSAGBIOf

This function checks whether a given list of polynomials is a SAGBI basis of a specific subalgebra.

### Syntax

SB.IsSAGBIOf(G: LIST of POLY, S: TAGGED("$apcocoa/sagbi.Subalgebra")): BOOL

### Description

@param

`G`A list of polynomials all of the same ring`R`@param

`S`A subalgebra of`R`@return

`true`if`G`is a SAGBI basis of`S`and false if not.

#### Example

Use R ::= QQ[x,y]; fs := [x^2*y, x^2 -y^2, x^2*y^2 -y^4, x^2*y^4]; S := SB.Subalgebra(R,fs); G := [x^2 -y^2, x^2*y, x^2*y^2 -y^4, y^6, x^2*y^4]; SB.IsSAGBIOf(fs,S); -- false SB.IsSAGBIOf(G,S); -- true

### See also