class JAS::MultiSeriesRing::Mcoeff
(Inner) class which extends edu.jas.ps.MultiVarCoefficients
Public Class Methods
new(ring,ifunc=nil,jfunc=nil)
click to toggle source
Constructor
ring must be a polynomial or multivariate power series ring. ifunc(ExpVector i) must return a value which is used in ((RingFactory)cofac).fromInteger(). jfunc(ExpVector i) must return a value of type ring.coFac.
Calls superclass method
# File examples/jas.rb 5607 def initialize(ring,ifunc=nil,jfunc=nil) 5608 super(ring); 5609 @coFac = ring.coFac; 5610 @ifunc = ifunc; 5611 @jfunc = jfunc; 5612 end
Public Instance Methods
generate(i)
click to toggle source
Generator for a coefficient.
long i parameter. returns a value of type ring.coFac.
# File examples/jas.rb 5620 def generate(i) 5621 if @jfunc == nil 5622 return @coFac.fromInteger( @ifunc.call(i) ); 5623 else 5624 return @jfunc.call(i); 5625 end 5626 end