Diode current as function of potential difference; without limiting to be at least C^2 continuous
function diodeCurrent input Real dx "Voltage across diode"; output Real i "Diode current"; end diodeCurrent;