#3140: fixed a bug in the calculation of derivatives introduced with changes in the NumberSymbols branch