编程介的小学生 2017-08-26 12:58 采纳率: 20.5%
浏览 931
已采纳

Bessel Function

Bessel function is one of the most important special functions in the field of physics. Many solutions of various physical phenomena have the form of this function. In mathematic notation, this function is deduced from the following differential equation:

There are two classes of solution of the above equation. One class of the solution (which is called the first kind of Bessel function) has the following image:

Because of its importance in the physics and it cannot be expressed by elementary functions, many formulas are deduced to numerically calculate it. The following integral is one of them.

Now you are asked to calculate Bessel function of the first kind using the above integral.

Input:

The input consists multiple test cases. In each test case, there are two numbers in one line, indicating the n and z in the above integral. (0<=n<=20, 0<=z<=20.0)
Output:

For each case, just output Jn(z). You must accurate the result up to 6 digits.
Sample Input:
0 0.00
10 11.11
20 19.99
Sample Output:
1.000000
0.286025
0.164206

  • 写回答

1条回答 默认 最新

  • threenewbee 2017-09-10 00:44
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?