4 ms·
There was a link to another article [1] about how COBOL may be better suited to certain mathematical calculations. The article in question presented this itera
by spc476 8y ago
There was a link to another article [1] about how COBOL may be better suited to certain mathematical calculations. The article in question presented this iterative function:
x[0] = 4
x[1] = 4.25
x[i] = 108 - ((815 - 1500 / x[i-1] ) / x[i-2])
It blew up on iteration 14 using floating point, but COBOL could be programmed to go further (by using more decimal places past the decimal point).
[1] https://medium.com/@bellmar/is-cobol-holding-you-hostage-with-math-5498c0eb428b https://medium.com/@bellmar/is-cobol-holding-you-hostage-wit...
- raverbashing 8y ago> may be better suited to certain mathematical calculations No, it isn't. If that's the best excuse they can find for keeping COBOL alive then throw it in the trash already (though I read the article and it's more subtle than that) There are arbitrary precision libraries for multiple languages, both binary and decimal.