differentiation by FizzyTea

for(;;)print(readline().replace(/.\d+$|(\d+)x\^?(\d*)/g,function(m,a,b)(a*b||a||'')+(b--?b>1?'x^'+b:'x':'')))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page