#
# jruby examples for jas.
# $Id: u_sl_2_e.rb 3823 2011-11-01 11:33:05Z kredel $
#

require "examples/jas"

# U(sl_2_e) example

rs = """
# solvable polynomials, U(sl_2_e):
Rat(e,h) G
RelationTable
(
 ( h ), ( e ), ( e h + 2 e )
)
""";

r = SolvableRing.new( rs );
puts "SolvableRing: " + str(r);
puts;


ps = """
(
 ( e^2 + h^3 )
)
""";

f = SolvableIdeal.new( r, ps );
puts "SolvableIdeal: " + str(f);
puts;


rg = f.leftGB();
puts "seq left Output: " + str(rg);
puts;


rg = f.twosidedGB();
puts "seq twosided Output: " + str(rg);
puts


rg = f.rightGB();
puts "seq right GB: " + str(rg);
puts;

