Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Plane wave expansion

  1. Dec 12, 2008 #1
    I've been working on a plane wave expansion in spherical harmonics.. as demonstrated in Bohren and Huffman (if anyone's familiar with it_)... I have more or less finished my code in Matlab and I'm putting in values to expand and compare with the exact solution...

    in short, i'm having trouble when defining some of my components as zero... getting results going crazy all over the place.!! now I appreciate this would seem like a problem with the code but looking at the equations in Bohren and Huffman(4.19) (and in my code) there seems to be a different problem!..

    one of the terms is divisible by a sin(m*phi) value and of course this value is going to go to zero with my phi and then the term goes to infinity!!! so my result ends up being nonsensical..>

    if anyone is familiar with the field t'would be nice to hear!:redface:
  2. jcsd
  3. Dec 13, 2008 #2
    or even if anyone has any examples of such an expansion within a matlab framework>?!
  4. Dec 15, 2008 #3
    honestly....... any help would be massively appreciated!!

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook