News for hackers. Stuff that matters.
Re:Why Arc is bad for exploratory programming by mnemonicsloth on Thursday May 15, 2008 @08:11AM (#190406)
Arc is inexplicably lacking trig, exp, and log

Okay, I haven't used Arc in a while -- existing Scheme codebase -- but Arc is built on PLT, which is compliant with R5RS, which does include basic math functions:

http://www-sop.inria.fr/mimosa/fp/Bigloo/doc/r5rs-9.html

(search for sin, cos, etc).

Did Arc forget how to talk to the numerics library? Rebind "cos" "sin" and "exp"? Is this guy just being stupid?

'splain me please.

Re:Why Arc is bad for exploratory programming by sacado on Thursday May 15, 2008 @12:56PM (#190664)
In ac.scm, add :

  (xdef 'cos 'cos)
  (xdef 'sin 'sin)
  (xdef 'exp 'exp)
And you're done.
Re:Why Arc is bad for exploratory programming by rkts on Thursday May 15, 2008 @02:52PM (#190764)
I think that should be

  (xdef 'cos cos)
etc.
Re:Why Arc is bad for exploratory programming by sacado on Thursday May 15, 2008 @03:46PM (#190833)
yep, you're right. sorry.