This function returns y = log10(u), with u > 0:
function log10 extends Modelica.Math.Icons.AxisLeft; input Real u "Independent variable"; output Real y "Dependent variable y=lg(u)"; end log10;