@Override
public Tensor transform(final Tensor tensor) {
if (!(tensor instanceof Integral))
return tensor;
final Integral integral = (Integral) tensor;
final Tensor target = integral.target();
final SimpleTensor[] vars = integral.vars();
if (!(target instanceof Sum))
return tensor;
Sum result = new Sum();
for (Tensor summand : target)