4 ms·
To someone who wants to use newLISP for calculating Pi to the nth digit, it might appear "fundamentally broken." Of course I don't know why on earth you would w
by itistoday 17y ago
To someone who wants to use newLISP for calculating Pi to the nth digit, it might appear "fundamentally broken." Of course I don't know why on earth you would want to do that in the first place, using a program/language specialized for such a task would be a far brighter idea, as such, the doc you refers to correctly suggests using the 'bc' program.
However, for someone who wants a Lisp for rapid web development, newLISP is a dream come true:
http://www.rundragonfly.com http://www.rundragonfly.com
As emphasized in the article: use the language that's most appropriate for the task at hand.
- itistoday 17y agonewLISP also has a bignum module (with 64-bit support): http://www.newlisp.org/code/modules/gmp.lsp.html http://www.newlisp.org/code/modules/gmp.lsp.html
- qu1j0t3 17y agoAnd if you want the value of pi, why not just use the same method invoked by bc in that code snippet: 4*atan(1) http://www.newlisp.org/downloads/newlisp_manual.html#atan http://www.newlisp.org/downloads/newlisp_manual.html#atan