computing groebner basis in Matlab

1

I am completely new in Matlab and want to compute groebner basis of some polynomials.

I just wrote the following code in a new window in Matlab but it says gbasis is undefined!

syms x1 x2 x3 x4

p = [x1^2-x1, x2^2-x2, x3^2-x3, x4^2-x4,x1+x3-1, x2+x4-1,
x1*x2, x1*x1, x2*x2, x3*x4, x3*x3, x4*x4];

grobnerBasis = gbasis(p,'MonomialOrder','lexicographic')

What should I do?!

GhD

Posted 2019-02-18T15:31:10.403

Reputation: 111

Question was closed 2019-02-18T21:47:05.100

Issues specific to programming and software development are off topic, see On-Topic. Try [SO] but please first read How do I ask a good question?.

– DavidPostill – 2019-02-18T21:47:15.993

Answers

0

gbasis is a function that you don't have installed in Matlab.

The only version I could find is part of Mathworks, which appears to be a math library that costs money:

https://www.mathworks.com/help/symbolic/gbasis.html

If you know the equation for gbasis you could write your own function. Here are instructions:

https://www.mathworks.com/help/matlab/matlab_prog/create-functions-in-files.html

HackSlash

Posted 2019-02-18T15:31:10.403

Reputation: 3 174