I am experimenting with the ComplexityFunction of Simplify and came up with this one:
ComplexityFunction->Function[e,Rasterize[HoldForm[e],"BoundingBox"][[1]]]
It gets the width of the bounding box of the image representation for the expression. The expression which generates an image with less width, is the chosen one. It works, but since it uses Rasterize, it is very slow.
I would like to know if there is a faster way to measure the displayed size the expression output. Any ideas?
ComplexityFunction-> Function[e,StringLength[ToString[InputForm[e]]]]
cannot meet request? $\endgroup$ – yode Dec 8 '16 at 6:15