level 1
水出我人生287
楼主
1.kx11为经过内插(Interpolation)的函数;
2.http://note.youdao.com/share/?id=bf2a031f7d0d69064941032c7857dfd1&type=note。这篇关于Compile的笔记当中,《原则三,模式匹配不能编译》还是不能很好理解,可以再解释一下吗
Jwij = Compile[{{x, _Real}},
NIntegrate[kx11[w]/(x - w), {w, 0.01, x - 10^-6}] +
NIntegrate[kx11[w]/(x - w), {w, x + 10^-6, 25}],
RuntimeAttributes -> {Listable}, Parallelization -> True];
Jwij[{0.011 , 2., 3., 6., 8., 10., 11., 12., 15., 16.}]

2023年08月16日 09点08分
1
2.http://note.youdao.com/share/?id=bf2a031f7d0d69064941032c7857dfd1&type=note。这篇关于Compile的笔记当中,《原则三,模式匹配不能编译》还是不能很好理解,可以再解释一下吗
Jwij = Compile[{{x, _Real}},
NIntegrate[kx11[w]/(x - w), {w, 0.01, x - 10^-6}] +
NIntegrate[kx11[w]/(x - w), {w, x + 10^-6, 25}],
RuntimeAttributes -> {Listable}, Parallelization -> True];
Jwij[{0.011 , 2., 3., 6., 8., 10., 11., 12., 15., 16.}]
