Hi Aaron, Thank you for taking the time to look at the source; good catch! I’ll fix those issues immediately.
Ricky > On Mar 11, 2016, at 12:00 PM, sursound-requ...@music.vt.edu wrote: > > Hi Ricky, > > I took a quick look at grambipan.c. For FuMa U you've written > > 189: (*APout4++) = sample1 * (2 * cosf(sample2)) * cosf(sample3) * > cosf(sample3); //U > > whereas the correct expression (found on Richard Furse's webpage, for > example) is > > U: cos(2A) cos(E) cos(E) > > Please note that cos(2x) does not equal 2cos(x). I see similar problems in > other definitions. > > > You might want to take a look at my Python library, > symbolic_spherical_harmonics. It derives and writes out expressions for > the spherical harmonics in a number of different languages. > > $ python SymYlm.py --spherical --FuMa --four_pi --translation c 2 2 > pow(cos(phi), 2)*cos(2*theta) > > $ python SymYlm.py --cartesian --FuMa --four_pi --translation c 2 2 > pow(x, 2) - pow(y, 2) > > Here's the git repo: > https://bitbucket.org/ajheller/symbolic_spherical_harmonics > <https://bitbucket.org/ajheller/symbolic_spherical_harmonics> > > -- > Aaron (hel...@ai.sri.com <mailto:hel...@ai.sri.com>) > Menlo Park, CA US -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://mail.music.vt.edu/mailman/private/sursound/attachments/20160311/7e399f26/attachment.html> _______________________________________________ Sursound mailing list Sursound@music.vt.edu https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here, edit account or options, view archives and so on.