Bessel function derivative in sum

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
6 replies · 2K views
member 428835
Hi PF!

I'm trying to put the first derivative of the modified Bessel function of the first kind evaluated at some point say ##\alpha## in a sum where the ##ith## function is part of the index. What I have so far is
Code:
n=3;
alpha = 2;
DBesselI[L_, x_] := D[BesselI[L, x], {x, 1}]
Sum[BesselI[L, alpha], {L, 1, n}]
But I don't think this is working. Any help would be awesome!
 
Physics news on Phys.org
You are using the modified Bessel function, not its derivative that you defined in the previous line, in the sum ...
 
Ahh shoot,
Orodruin said:
You are using the modified Bessel function, not its derivative that you defined in the previous line, in the sum ...
Shoot, this is a typo on my part copying into PF. Instead if I use
Code:
n=3;
alpha = 2;
DBesselI[L_, x_] := D[BesselI[L, x], {x, 1}]
Sum[DBesselI[L, alpha], {L, 1, n}]
I still get an error. In fact, even if I simply try evaluating
Code:
DBesselI[1, alpha]
I receive an error. Any ideas?
 
It might help if you quote the error message.
 
Orodruin said:
It might help if you quote the error message.
It reads "2 is not a valid variable." and then iterates "##\partial_{\{2,1\}}BesselI[1,3]##". Any ideas?
 
Last edited:
  • Like
Likes   Reactions: member 428835
Thanks so much! This actually makes a lot of sense!