Dear Markus and All,
Thank you, Markus, for useful advice for measuring of time. I
will keep them in mind for the future.
For those who like Grobner-base things:
I have uploaded the unfinised codes on Groebner-base (GB), which was
mentioned by myself in this thread. It is on the half way of
developing, and perhaps will be so forever.
Main source of the codes is a book:
"Fundamental of Calculation Groebner Base"
by M. Noro and K. Yokomama,
from Tokyo University Publishing
ISBN = 4130614045,
2003
(in Japanese)
Among many books on GB, I was strongly recommended to read
this book by an active expert on the topics, though
I have not read it in technical details yet.
According to the book, the authors are also developers of Risa/Asir:
http://www.math.sci.kobe-u.ac.jp/Asir/asir.html
The following sample are taken from the above text book.
According to it, the example is already impossibly hard for humem
to calculate by hand, and also for programs of naive algorithm.
?- pack_install(pac) % pac-0.8.8
?- use_module(library(pac)).
?- use_module(gb('gb-top')). % gb is a file_search_path prefix.
?- F1 = x^5+y^4+z^3-1, F2=x^3+y^3+z^2-1, time(gb:gb(F1;F2, X, [vars([z,y,x])])).
% 126,513,226 inferences, 14.528 CPU in 14.602 seconds (99% CPU, 8708474 Lips)
?- F1 = x^5+y^4+z^3-1, F2=x^3+y^3+z^2-1, time(gb:gb(F1;F2, X, [vars([z,y,x]),vector(true)])).
% 262,864,010 inferences, 42.968 CPU in 43.186 seconds (99% CPU, 6117654 Lips)
?- F1 = x^5+y^4+z^3-1, F2=x^3+y^3+z^2-1, time(gb:gb(F1;F2, X, [vars([x,y,z]),vector(true)])).
% 2,063,663 inferences, 0.227 CPU in 0.233 seconds (98% CPU, 9086823 Lips)
?- pack_remove(pac).
?- halt.
The codes are under pac/grobner directory.
Kuhiaki Mukai