I propose to modify the built-in function int(4) such that it can handle integration variables with units. It is easy to build a corresponding function thanks to Davide's UoM() and for maple(int(4) this already works.
[MATH lang=eng]Int(f#,x#,a#,b#):line(u#:UoM(b#-a#),sf#:num2str(f#),sx#:num2str(x#),sxu#:num2str(x#*u#),ft#:str2num(strrep(sf#,sx#,sxu#)),u#*int(ft#,x#,a#/u#,b#/u#),6,1)[/MATH]
See attached sheet for examples.
Edit: Shifted to bug tracking system
Section math integration units.sm (19 KiB) downloaded 50 time(s).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx