Skip to content

Symbolics Plugin (Experimental)

kiwiheretic edited this page Jul 16, 2016 · 1 revision

Brings the power of sympy to IRC. This is a work in progress and considered to be an experimental feature of logos. Below is a sample session:

19:09 < splat> .calc expand_trig(tan(x+y))
19:09 < Logos> (tan(x) + tan(y))/(-tan(x)*tan(y) +
               1)
19:09 < splat> .calc expand_trig(sinh(x+y))
19:09 < Logos> sinh(x)*cosh(y) + sinh(y)*cosh(x)
19:12 < splat> .calc expand_trig(sinh(2*x))
19:12 < Logos> 2*sinh(x)*cosh(x)
19:13 < splat> .calc expand_trig(sinh(3*x))
19:13 < Logos> sinh(x)**3 + 3*sinh(x)*cosh(x)**2
19:24 < splat> .calc integrate(sqrt(1-x**2),x)
19:24 < Logos> x*sqrt(-x**2 + 1)/2 + asin(x)/2
19:25 < splat> .calc integrate(1/sqrt(1-x**2),x)
19:25 < Logos> asin(x)

The symbolics server is run as a separate process. It was necessary to run separately as it can be quite CPU intensive. The server by default listens on UDP port 8001.

$ python manage.py symbolics_server

To list on a different port to the default:

$ python manage.py symbolics_server --port <port>