function pot1 = divide_by_gpot(pot1, pot2)
% DIVIDE_BY_GPOT Compute pot1 /= pot2 for Gaussian potentials.
% pot1 = divide_by_gpot(pot1, pot2)

if pot1.subtype == 'c' & pot2.subtype== 'c'
  [pot1.g, pot1.h, pot1.K] = divide_by_canonical(pot1.g, pot1.h, pot1.K, pot2.g, pot2.h, pot2.K, ...
      pot1.domain, pot2.domain, pot1.sizes, pot2.sizes);
else
  error('bad type'); % division is not defined for moment form
end
