{"id":732,"date":"2011-03-27T17:56:00","date_gmt":"2011-03-27T15:56:00","guid":{"rendered":""},"modified":"2023-03-23T14:09:01","modified_gmt":"2023-03-23T13:09:01","slug":"k_vx","status":"publish","type":"post","link":"https:\/\/touk.pl\/blog\/2011\/03\/27\/k_vx\/","title":{"rendered":"<!--:en-->K_v(x)<!--:-->"},"content":{"rendered":"<p>I have just wasted about three hours of sunday afternoon trying to compute a modified bessel function of second kind of fractional order (also known as hyperbolic Bessel function). I hope that this tiny C++ snippet will be googlable, and it will save a few minutes of someone&#8217;s live:<\/p>\n<pre>#include &lt;boost\/math\/special_functions\/bessel.hpp&gt;\r\n#include<\/pre>\n<p>(&#8230;)<\/p>\n<p>double v = 5.0\/3.0; \/* an order of Bessel function *\/<br \/>\ndouble x = 2.5; \/* an argument of bessel function *\/<br \/>\ndouble r; \/* will contain a value *\/<\/p>\n<p>r = boost::math::cyl_bessel_k(v, x);<br \/>\nstd::cout&lt;&lt;r&lt;&lt;std::endl;<\/p>\n<p>Just in case someone is interested what is a modified Bessel function, this is an integral representation of Bessel funtion of order\u00a0<em>v<\/em>:<\/p>\n","protected":false},"excerpt":{"rendered":"I have just wasted about three hours of sunday afternoon trying to compute a modified bessel function of&hellip;\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/732"}],"collection":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/comments?post=732"}],"version-history":[{"count":23,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/732\/revisions"}],"predecessor-version":[{"id":15639,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/732\/revisions\/15639"}],"wp:attachment":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/media?parent=732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/categories?post=732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/tags?post=732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}