View Single Post
Jul17-09, 06:38 AM
P: 600
Quote Quote by CompuChip View Post
Did you try the N function?

BesselK[1,2] // N
In general, Mathematica only "evaluates" such functions for special arguments for which it knows exact values. In all other cases, it leaves the answer exact. You can force it to give a decimal representation using
N[expr, # of decimals]

Another way that often works is to give the arguments as floating numbers rather than exact values:
BesselK[1., 2]
BesselK[1, 2.]
BesselK[1., 2.]
Thank you CompuChip, but it didn't work, I still get the same expression. Why?