Some of you will have seen the discussion on the Apple mailing list about replacing Satimage’s trig functions. As pointed out there, Takaaki Naganoya’s calcLibAS script library is an excellent substitute: fast and simple.
Here’s an alternative that takes a different approach. Instead of defining handlers for each function, you pass the name of the function as one of the arguments. It also has a
map-style method to process a list of numbers in one call, for greater efficiency, although that is limited to functions that take one (or fewer) arguments.