Jonathan Leto: May 2008 Archives

Visualize the symmetry of Bessel Functions

| | Comments (0) | TrackBacks (0)
Previously I posted a graph of some Bessel functions on the interval zero to twenty, or [0,20] . Here is the same code but on the symmetric counterpart of the the previous interval, [-20, 20]. This allows use to plainly see that even-numbered Bessel functions are even functions (satisfy f(-x)=f(x)) while odd-numbered Bessel functions are odd ( satisfy f(-x)=-f(x) ).

View image

Strange crash resolved

| | Comments (0) | TrackBacks (0)
Evidently, this typemap was causing the issue with gcc 4.x:


 %typemap(freearg) double const [] {
    free($1);
}


What made it hard to track down was that I could not reproduce it on gcc 3.4.6. It was cargo-culted and unnecessary code. Have we learned our lesson?

Bessel Function Example for Math::GSL

| | Comments (0) | TrackBacks (0)

There is now an examples/sf directory which has the Perl code to generate this graph with gnuplot. The function Math::GSL::SF::gsl_sf_bessel_Jn($n,$x) was used.




bessel.png

About this Archive

This page is a archive of recent entries written by Jonathan Leto in May 2008.

Jonathan Leto: April 2008 is the previous archive.

Jonathan Leto: June 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Screw you, spammers! Clicky Web Analytics