Sunday, November 26, 2017

Advanced trigonometric functions for Deluge script

Deluge script lacks advanced trigonometric functions like acos/atan. If you want to implement the great circle distance method, you'll need them. Here is some code I ported to deluge to fix this problem.


  1. This comment has been removed by a blog administrator.

  2. Hi Jeremy, impressive, but I wonder if it doesn't make more sense to use math.js or python (or whatever specialized library available for this or any other task) to build an app and call the functions from Deluge geturl. Maybe performance wouldn't be optimal but to build a page or a map should be enough. What do you think? As far as I know, Deluge doesn't allow to build portable libraries, does it?