Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



In ac.scm, add :

  (xdef 'cos 'cos)
  (xdef 'sin 'sin)
  (xdef 'exp 'exp)
And you're done.


I think that should be

  (xdef 'cos cos)
etc.


yep, you're right. sorry.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: