<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, BesselY,BesselK</title>
    <link>http://www.mapleprimes.com/questions/41279-BesselYBesselK</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 03:25:52 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 03:25:52 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, BesselY,BesselK</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, BesselY,BesselK</title>
      <link>http://www.mapleprimes.com/questions/41279-BesselYBesselK</link>
    </image>
    <item>
      <title>evalf,Int with Method</title>
      <link>http://www.mapleprimes.com/questions/41279-BesselYBesselK?ref=Feed:MaplePrimes:BesselY,BesselK:Comments#answer76846</link>
      <itunes:summary>I am not sure if I am using the correct method type but the following give roughly the same answer:

&gt;evalf(Int((1/4)*x^3*BesselY(0, x)*BesselK(0, x), x = 0 .. infinity, method = _CCquad));

                   0.1591549431

if you evaluate the value that those authors say:
&gt; evalf(1/(2*Pi));
                   0.1591549430

You can see that the answers are almost exact (not exact due to round off error when dealing with numerics instead of symbolic operations).  I am not sure if there is another option that will give you a symbolic answer.

Scott
</itunes:summary>
      <description>I am not sure if I am using the correct method type but the following give roughly the same answer:

&gt;evalf(Int((1/4)*x^3*BesselY(0, x)*BesselK(0, x), x = 0 .. infinity, method = _CCquad));

                   0.1591549431

if you evaluate the value that those authors say:
&gt; evalf(1/(2*Pi));
                   0.1591549430

You can see that the answers are almost exact (not exact due to round off error when dealing with numerics instead of symbolic operations).  I am not sure if there is another option that will give you a symbolic answer.

Scott
</description>
      <guid>76846</guid>
      <pubDate>Thu, 07 Jun 2007 21:01:56 Z</pubDate>
      <itunes:author>Scott03</itunes:author>
      <author>Scott03</author>
    </item>
    <item>
      <title>Via Mellin transform</title>
      <link>http://www.mapleprimes.com/questions/41279-BesselYBesselK?ref=Feed:MaplePrimes:BesselY,BesselK:Comments#answer76844</link>
      <itunes:summary>&lt;pre&gt;&amp;gt;yy := (1/4)*x^3*BesselY(0,x)*BesselK(0,x):
&amp;gt; mel := inttrans[mellin](yy,x,s);

               s                 2                      Pi (s + 3)
              2  GAMMA(s/2 + 3/2)  GAMMA(s/4 + 3/4) cos(----------)
                                                            4
  mel := -1/4 -----------------------------------------------------
                                       Pi

&amp;gt; limit(mel,s=1);

                                  1
                                 ----
                                 2 Pi

&lt;/pre&gt;

This actually generalizes nicely, and one can get a closed-form with x^3 replaced by x^a.  If a+1 is congruent to 0 mod 4, the answer simplifies a lot.

The prettiest easy generalization along those lines (that I could find easily) is
&lt;pre&gt;&amp;gt; yy := (1/4)*x^a*BesselY(nu,x)*BesselK(nu,x):
&amp;gt; mel := inttrans[mellin](yy,x,s);

               (s + a - 3)                                     nu
  mel := -1/4 2            GAMMA(s/2 + a/2) GAMMA(s/2 + a/2 + ----)
                                                               2

                           nu       Pi (s + a - 2 nu)
        GAMMA(s/4 + a/4 - ----) cos(-----------------)/Pi
                           2                4

&amp;gt; eval(mel,s=1);

        (-2 + a)                                     nu
  -1/4 2         GAMMA(1/2 + a/2) GAMMA(1/2 + a/2 + ----)
                                                     2

                           nu       Pi (1 + a - 2 nu)
        GAMMA(1/4 + a/4 - ----) cos(-----------------)/Pi
                           2                4

&lt;/pre&gt;
 
</itunes:summary>
      <description>&lt;pre&gt;&amp;gt;yy := (1/4)*x^3*BesselY(0,x)*BesselK(0,x):
&amp;gt; mel := inttrans[mellin](yy,x,s);

               s                 2                      Pi (s + 3)
              2  GAMMA(s/2 + 3/2)  GAMMA(s/4 + 3/4) cos(----------)
                                                            4
  mel := -1/4 -----------------------------------------------------
                                       Pi

&amp;gt; limit(mel,s=1);

                                  1
                                 ----
                                 2 Pi

&lt;/pre&gt;

This actually generalizes nicely, and one can get a closed-form with x^3 replaced by x^a.  If a+1 is congruent to 0 mod 4, the answer simplifies a lot.

The prettiest easy generalization along those lines (that I could find easily) is
&lt;pre&gt;&amp;gt; yy := (1/4)*x^a*BesselY(nu,x)*BesselK(nu,x):
&amp;gt; mel := inttrans[mellin](yy,x,s);

               (s + a - 3)                                     nu
  mel := -1/4 2            GAMMA(s/2 + a/2) GAMMA(s/2 + a/2 + ----)
                                                               2

                           nu       Pi (s + a - 2 nu)
        GAMMA(s/4 + a/4 - ----) cos(-----------------)/Pi
                           2                4

&amp;gt; eval(mel,s=1);

        (-2 + a)                                     nu
  -1/4 2         GAMMA(1/2 + a/2) GAMMA(1/2 + a/2 + ----)
                                                     2

                           nu       Pi (1 + a - 2 nu)
        GAMMA(1/4 + a/4 - ----) cos(-----------------)/Pi
                           2                4

&lt;/pre&gt;
 
</description>
      <guid>76844</guid>
      <pubDate>Thu, 07 Jun 2007 22:57:01 Z</pubDate>
      <itunes:author>JacquesC</itunes:author>
      <author>JacquesC</author>
    </item>
    <item>
      <title>Mgfun, etc</title>
      <link>http://www.mapleprimes.com/questions/41279-BesselYBesselK?ref=Feed:MaplePrimes:BesselY,BesselK:Comments#answer76484</link>
      <itunes:summary>[I am not reply-ing to the above message, because things have gotten too squeezed onto the RHS of the screen].

You need to set the variable 'libname' to include that directory.  Take a look at the help pages for &lt;code&gt;libname&lt;/code&gt; and &lt;code&gt;LibraryTools&lt;/code&gt;.</itunes:summary>
      <description>[I am not reply-ing to the above message, because things have gotten too squeezed onto the RHS of the screen].

You need to set the variable 'libname' to include that directory.  Take a look at the help pages for &lt;code&gt;libname&lt;/code&gt; and &lt;code&gt;LibraryTools&lt;/code&gt;.</description>
      <guid>76484</guid>
      <pubDate>Thu, 05 Jul 2007 06:11:55 Z</pubDate>
      <itunes:author>JacquesC</itunes:author>
      <author>JacquesC</author>
    </item>
    <item>
      <title>Mgfun, libname</title>
      <link>http://www.mapleprimes.com/questions/41279-BesselYBesselK?ref=Feed:MaplePrimes:BesselY,BesselK:Comments#comment85322</link>
      <itunes:summary>Thanks.
I read libname. There is only one problem, the priority.
When I typed
&lt;pre&gt;
&gt; originallibname:=libname;

                "C:\Program Files\Maple 10/lib"
&gt; with(Mgfun);

Error, (in with) invalid input: with expects its 1st argument, 
pname, to be of type {package, module}, but received Mgfun

&gt; libname:="C:/Program Files/Maple 11/MyLib/Algolib";

           "C:/Program Files/Maple 11/MyLib/Algolib"

&gt; with(Mgfun);

[MG_Internals, creative_telescoping, dfinite_expr_to_diffeq, 
  dfinite_expr_to_rec, dfinite_expr_to_sys, diag_of_sys, int_of_sys, 
  pol_to_sys, sum_of_sys, sys*sys, sys+sys]

&gt; with(Groebner);

[Basis, FGLM, &lt;strong&gt;GB_Internals&lt;/strong&gt;, HilbertDimension, HilbertPolynomial, 
  HilbertSeries, InterReduce, IsProper, IsZeroDimensional, 
LeadingCoefficient, 
  LeadingMonomial, LeadingTerm, MonomialOrder, MulMatrix, 
  MultiplicationMatrix, MultivariateCyclicVector, NormalForm, NormalSet, 
  Reduce, RememberBasis, SPolynomial, SetBasis, Solve, TestOrder, 
  ToricIdealBasis, UnivariatePolynomial, Walk, _pexports, fglm_algo, gbasis, 
  gsolve, hilbertdim, hilbertpoly, hilbertseries, init, inter_reduce, 
  is_finite, is_solvable, leadcoeff, leadmon, leadterm, normalf, 
  pretend_gbasis, reduce, spoly, termorder, testorder, univpoly]
&lt;/pre&gt;

So everything is OK. Almost.
The problem is the order (priority). When I typed the following the &lt;strong&gt;GB_Internals&lt;/strong&gt;
disappeared.

&lt;pre&gt;
&gt; libname;
                "C:\Program Files\Maple 10/lib"
&gt; libname:="C:/Program Files/Maple 11/MyLib/Algolib",libname;

"C:/Program Files/Maple 11/MyLib/Algolib", "C:\Program Files\Maple 10/lib"

&gt; with(Mgfun);

[MG_Internals, creative_telescoping, dfinite_expr_to_diffeq, 
  dfinite_expr_to_rec, dfinite_expr_to_sys, diag_of_sys, int_of_sys, 
  pol_to_sys, sum_of_sys, sys*sys, sys+sys]

&gt; with(Groebner);

[Basis, FGLM, HilbertDimension, HilbertPolynomial, HilbertSeries, InterReduce, 
  IsProper, IsZeroDimensional, LeadingCoefficient, LeadingMonomial, 
  LeadingTerm, MonomialOrder, MultiplicationMatrix, MultivariateCyclicVector, 
  NormalForm, NormalSet, Reduce, RememberBasis, SPolynomial, Solve, TestOrder, 
  ToricIdealBasis, UnivariatePolynomial, Walk]

&gt; march('setattribute',"C:/Program Files/Maple 11/MyLib/Algolib",priority=2);

Error, (in march) individual archive file is expected for changing priority

&lt;/pre&gt;

How can I give higher priority to Algolib than Maple/lib?

The help says

For example, the commands: 

    libname := "/usr/me/mylib/joe.lib","/usr/maple/lib";

    myexpand;

result in the two specified locations being searched for a definition of myexpand in a file or a member named myexpand.m. &lt;strong&gt;First&lt;/strong&gt; the single library "joe.lib" in the directory "/user/me/mylib" is searched, &lt;strong&gt;and then, if necessary&lt;/strong&gt;, the libraries in the directory "/usr/maple/lib" are searched. The search is terminated on its first success. In particular, this mechanism allows for easy additions or replacements to the main library. 

I need only (hopefully) a little help to go on.


</itunes:summary>
      <description>Thanks.
I read libname. There is only one problem, the priority.
When I typed
&lt;pre&gt;
&gt; originallibname:=libname;

                "C:\Program Files\Maple 10/lib"
&gt; with(Mgfun);

Error, (in with) invalid input: with expects its 1st argument, 
pname, to be of type {package, module}, but received Mgfun

&gt; libname:="C:/Program Files/Maple 11/MyLib/Algolib";

           "C:/Program Files/Maple 11/MyLib/Algolib"

&gt; with(Mgfun);

[MG_Internals, creative_telescoping, dfinite_expr_to_diffeq, 
  dfinite_expr_to_rec, dfinite_expr_to_sys, diag_of_sys, int_of_sys, 
  pol_to_sys, sum_of_sys, sys*sys, sys+sys]

&gt; with(Groebner);

[Basis, FGLM, &lt;strong&gt;GB_Internals&lt;/strong&gt;, HilbertDimension, HilbertPolynomial, 
  HilbertSeries, InterReduce, IsProper, IsZeroDimensional, 
LeadingCoefficient, 
  LeadingMonomial, LeadingTerm, MonomialOrder, MulMatrix, 
  MultiplicationMatrix, MultivariateCyclicVector, NormalForm, NormalSet, 
  Reduce, RememberBasis, SPolynomial, SetBasis, Solve, TestOrder, 
  ToricIdealBasis, UnivariatePolynomial, Walk, _pexports, fglm_algo, gbasis, 
  gsolve, hilbertdim, hilbertpoly, hilbertseries, init, inter_reduce, 
  is_finite, is_solvable, leadcoeff, leadmon, leadterm, normalf, 
  pretend_gbasis, reduce, spoly, termorder, testorder, univpoly]
&lt;/pre&gt;

So everything is OK. Almost.
The problem is the order (priority). When I typed the following the &lt;strong&gt;GB_Internals&lt;/strong&gt;
disappeared.

&lt;pre&gt;
&gt; libname;
                "C:\Program Files\Maple 10/lib"
&gt; libname:="C:/Program Files/Maple 11/MyLib/Algolib",libname;

"C:/Program Files/Maple 11/MyLib/Algolib", "C:\Program Files\Maple 10/lib"

&gt; with(Mgfun);

[MG_Internals, creative_telescoping, dfinite_expr_to_diffeq, 
  dfinite_expr_to_rec, dfinite_expr_to_sys, diag_of_sys, int_of_sys, 
  pol_to_sys, sum_of_sys, sys*sys, sys+sys]

&gt; with(Groebner);

[Basis, FGLM, HilbertDimension, HilbertPolynomial, HilbertSeries, InterReduce, 
  IsProper, IsZeroDimensional, LeadingCoefficient, LeadingMonomial, 
  LeadingTerm, MonomialOrder, MultiplicationMatrix, MultivariateCyclicVector, 
  NormalForm, NormalSet, Reduce, RememberBasis, SPolynomial, Solve, TestOrder, 
  ToricIdealBasis, UnivariatePolynomial, Walk]

&gt; march('setattribute',"C:/Program Files/Maple 11/MyLib/Algolib",priority=2);

Error, (in march) individual archive file is expected for changing priority

&lt;/pre&gt;

How can I give higher priority to Algolib than Maple/lib?

The help says

For example, the commands: 

    libname := "/usr/me/mylib/joe.lib","/usr/maple/lib";

    myexpand;

result in the two specified locations being searched for a definition of myexpand in a file or a member named myexpand.m. &lt;strong&gt;First&lt;/strong&gt; the single library "joe.lib" in the directory "/user/me/mylib" is searched, &lt;strong&gt;and then, if necessary&lt;/strong&gt;, the libraries in the directory "/usr/maple/lib" are searched. The search is terminated on its first success. In particular, this mechanism allows for easy additions or replacements to the main library. 

I need only (hopefully) a little help to go on.


</description>
      <guid>85322</guid>
      <pubDate>Thu, 05 Jul 2007 19:55:34 Z</pubDate>
      <itunes:author>SandorSzabo</itunes:author>
      <author>SandorSzabo</author>
    </item>
    <item>
      <title>libname</title>
      <link>http://www.mapleprimes.com/questions/41279-BesselYBesselK?ref=Feed:MaplePrimes:BesselY,BesselK:Comments#comment91609</link>
      <itunes:summary>libname is search in order (left to right), so that if you put Algobib in first, that is the one that will be picked up.  The priority is only useful if you have multiple .mla libraries in the same directory, then you need to order them explicitly.

You have to make sure that you change libname as the very first thing you do in a session (make sure you have no init files!).  Otherwise any loading that happens will ``lock in'' where things are looked up.  The way you did it above should have worked in a clean worksheet.</itunes:summary>
      <description>libname is search in order (left to right), so that if you put Algobib in first, that is the one that will be picked up.  The priority is only useful if you have multiple .mla libraries in the same directory, then you need to order them explicitly.

You have to make sure that you change libname as the very first thing you do in a session (make sure you have no init files!).  Otherwise any loading that happens will ``lock in'' where things are looked up.  The way you did it above should have worked in a clean worksheet.</description>
      <guid>91609</guid>
      <pubDate>Thu, 05 Jul 2007 22:31:05 Z</pubDate>
      <itunes:author>JacquesC</itunes:author>
      <author>JacquesC</author>
    </item>
    <item>
      <title>libname problem</title>
      <link>http://www.mapleprimes.com/questions/41279-BesselYBesselK?ref=Feed:MaplePrimes:BesselY,BesselK:Comments#comment91614</link>
      <itunes:summary>I use Maple 10 under xp. There is no init file.
It seems to me there is something wrong with libname.
I copy here the 2 examples.
There is no anything else in these 2 mw files.

1)

&lt;pre&gt;
&gt; libname;
                "C:\Program Files\Maple 10/lib"
&gt; with(Mgfun);

Error, (in with) invalid input: with expects its 1st argument, pname, 
to be of type {package, module}, but received Mgfun

&gt; libname:="C:/Program Files/Maple 11/MyLib/Algolib";

           "C:/Program Files/Maple 11/MyLib/Algolib"

&gt; with(Mgfun);

[MG_Internals, creative_telescoping, dfinite_expr_to_diffeq, 
  dfinite_expr_to_rec, dfinite_expr_to_sys, diag_of_sys, int_of_sys, 
  pol_to_sys, sum_of_sys, sys*sys, sys+sys]

&gt; with(Groebner);

[Basis, FGLM, &lt;strong&gt;GB_Internals&lt;/strong&gt;, HilbertDimension, HilbertPolynomial, 
  HilbertSeries, InterReduce, IsProper, IsZeroDimensional, LeadingCoefficient, 
  LeadingMonomial, LeadingTerm, MonomialOrder, MulMatrix, 
  MultiplicationMatrix, MultivariateCyclicVector, NormalForm, NormalSet, 
  Reduce, RememberBasis, SPolynomial, SetBasis, Solve, TestOrder, 
  ToricIdealBasis, UnivariatePolynomial, Walk, _pexports, fglm_algo, gbasis, 
  gsolve, hilbertdim, hilbertpoly, hilbertseries, init, inter_reduce, 
  is_finite, is_solvable, leadcoeff, leadmon, leadterm, normalf, 
  pretend_gbasis, reduce, spoly, termorder, testorder, univpoly]

&lt;/pre&gt;
Everything is OK.

2)

&lt;pre&gt;
&gt; libname;
                "C:\Program Files\Maple 10/lib"

&gt; libname:="C:/Program Files/Maple 11/MyLib/Algolib",libname;

"C:/Program Files/Maple 11/MyLib/Algolib", 
"C:\Program Files\Maple 10/lib"

&gt; with(Mgfun);

[MG_Internals, creative_telescoping, dfinite_expr_to_diffeq, 
  dfinite_expr_to_rec, dfinite_expr_to_sys, diag_of_sys, int_of_sys, 
  pol_to_sys, sum_of_sys, sys*sys, sys+sys]

&gt; with(Groebner);

[Basis, FGLM, HilbertDimension, HilbertPolynomial, HilbertSeries, InterReduce, 
  IsProper, IsZeroDimensional, 
LeadingCoefficient, LeadingMonomial, 
  LeadingTerm, MonomialOrder, MultiplicationMatrix, MultivariateCyclicVector, 
  NormalForm, NormalSet, Reduce, RememberBasis, SPolynomial, Solve, TestOrder, 
  ToricIdealBasis, UnivariatePolynomial, Walk]

&lt;/pre&gt;
GB_Internals disappeared.

Sorry, but I don't understand the reason of it.
(Therefore I thought to force Maple by using priority.)
</itunes:summary>
      <description>I use Maple 10 under xp. There is no init file.
It seems to me there is something wrong with libname.
I copy here the 2 examples.
There is no anything else in these 2 mw files.

1)

&lt;pre&gt;
&gt; libname;
                "C:\Program Files\Maple 10/lib"
&gt; with(Mgfun);

Error, (in with) invalid input: with expects its 1st argument, pname, 
to be of type {package, module}, but received Mgfun

&gt; libname:="C:/Program Files/Maple 11/MyLib/Algolib";

           "C:/Program Files/Maple 11/MyLib/Algolib"

&gt; with(Mgfun);

[MG_Internals, creative_telescoping, dfinite_expr_to_diffeq, 
  dfinite_expr_to_rec, dfinite_expr_to_sys, diag_of_sys, int_of_sys, 
  pol_to_sys, sum_of_sys, sys*sys, sys+sys]

&gt; with(Groebner);

[Basis, FGLM, &lt;strong&gt;GB_Internals&lt;/strong&gt;, HilbertDimension, HilbertPolynomial, 
  HilbertSeries, InterReduce, IsProper, IsZeroDimensional, LeadingCoefficient, 
  LeadingMonomial, LeadingTerm, MonomialOrder, MulMatrix, 
  MultiplicationMatrix, MultivariateCyclicVector, NormalForm, NormalSet, 
  Reduce, RememberBasis, SPolynomial, SetBasis, Solve, TestOrder, 
  ToricIdealBasis, UnivariatePolynomial, Walk, _pexports, fglm_algo, gbasis, 
  gsolve, hilbertdim, hilbertpoly, hilbertseries, init, inter_reduce, 
  is_finite, is_solvable, leadcoeff, leadmon, leadterm, normalf, 
  pretend_gbasis, reduce, spoly, termorder, testorder, univpoly]

&lt;/pre&gt;
Everything is OK.

2)

&lt;pre&gt;
&gt; libname;
                "C:\Program Files\Maple 10/lib"

&gt; libname:="C:/Program Files/Maple 11/MyLib/Algolib",libname;

"C:/Program Files/Maple 11/MyLib/Algolib", 
"C:\Program Files\Maple 10/lib"

&gt; with(Mgfun);

[MG_Internals, creative_telescoping, dfinite_expr_to_diffeq, 
  dfinite_expr_to_rec, dfinite_expr_to_sys, diag_of_sys, int_of_sys, 
  pol_to_sys, sum_of_sys, sys*sys, sys+sys]

&gt; with(Groebner);

[Basis, FGLM, HilbertDimension, HilbertPolynomial, HilbertSeries, InterReduce, 
  IsProper, IsZeroDimensional, 
LeadingCoefficient, LeadingMonomial, 
  LeadingTerm, MonomialOrder, MultiplicationMatrix, MultivariateCyclicVector, 
  NormalForm, NormalSet, Reduce, RememberBasis, SPolynomial, Solve, TestOrder, 
  ToricIdealBasis, UnivariatePolynomial, Walk]

&lt;/pre&gt;
GB_Internals disappeared.

Sorry, but I don't understand the reason of it.
(Therefore I thought to force Maple by using priority.)
</description>
      <guid>91614</guid>
      <pubDate>Fri, 06 Jul 2007 11:40:20 Z</pubDate>
      <itunes:author>SandorSzabo</itunes:author>
      <author>SandorSzabo</author>
    </item>
  </channel>
</rss>