Comment on Why Arc is bad for exploratory programmingComments−mnemonicsloth18yArc is inexplicably lacking trig, exp, and logOkay, 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.−sacado18yIn ac.scm, add : (xdef 'cos 'cos) (xdef 'sin 'sin) (xdef 'exp 'exp) And you're done.−rkts18yI think that should be (xdef 'cos cos) etc.−sacado18yyep, you're right. sorry.
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 :
And you're done.I think that should be
etc.yep, you're right. sorry.