Skip to content

Comment on Why Arc is bad for exploratory programming

Comments

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.