4 ms·
As a query, have you looked into lisp at all? I've seen (through HN) examples of stuff like derivatives expressed quite elegantly using Lisp. Using C for math
by redcap 17y ago
As a query, have you looked into lisp at all? I've seen (through HN) examples of stuff like derivatives expressed quite elegantly using Lisp.
Using C for maths programming sounds fun and all, but I'm sure there's got to be a better way of doing things.
- hs 17y agolisp is also nice for testing arguments, like 0 < a0 < a1 < ... < an < 999, ai ∈ integer (and (< 0 a0 a1 ... an 999) (apply and (map integer? (list a0 a1 ... an))) (foo bar))
- cperciva 17y agoI've tried lisp; but for one-time hacks where I'm not aiming for performance or robustness I usually go to the extreme and use Maple.