[XCSSA] IS vs CS/CEgr

X-otic Computer Systems of San Antonio xcssa at xcssa.org
Wed Apr 9 12:38:05 CDT 2008


Using python as a standard example from
http://jan-krueger.net/development/howto-encode-your-string-trigonometrically

CS/CEgr way:
$ python

>>> def f(t): return 93.083 - 10.549*cos(0.524*t) - 0.195*sin(0.524*t)
- 17.167*cos(1.047*t) + 22.805*sin(1.047*t) - 5.000*cos(1.571*t) -
1.833*sin(1.571*t) + 8.667*cos(2.094*t) + 19.630*sin(2.094*t) -
7.951*cos(2.618*t) - 1.638*sin(2.618*t) + 10.917*cos(3.142*t)
…
>>> ".join((chr(f(x)+.5) for x in range(12)))


IS way : (not to spoil the above) use standard python commands.



More information about the XCSSA mailing list