01-06-2010 02:28 AM
Can anyone please clarify whether the Bessel functions in LV 2009 operate on complex inputs and give complex outputs? The "Help" text mentions only real outputs.
A quick test on the Bessel function Jv of zeroth order seems to indicate that it accepts a complex input but delivers a real output. Does it just ignore the imaginary part of the input?
Any input much appreciated, thanks!
Peter
Solved! Go to Solution.
01-06-2010 03:57 AM
Hi Peter,
The Bessel function in LabVIEW 2009 can not operate on complex input. If you specify a complex input, it will be casted to real. You should see a red dot which indicates the cast.
01-06-2010 04:30 AM
Hi ttrr
Many thanks for your prompt and helpful explanation. I thought something like that was happening, your confirmation much appreciated.
The only viable solution I have found is using Matlab (Excel BESSELJ cannot handle complex inputs either).
Regards
Peter
01-06-2010 11:24 AM
Hello Peter,
LabVIEW MathScript can support real-order Bessel functions with complex inputs. Reference the help for the bessel_j function, in particular.
Grant M.
Senior Software Engineer | LabVIEW MathScript | National Instruments
01-08-2010 06:22 AM
Hi Grant
Thanks for your input. Using the LV MathScript add-on is definitely an option from the cost point of view. You tip much appreciated!
Regards
Peter