Uses new version of equation.m - passes component type to cr.