Very fast and accurate C file.
mexed it and used it..it is faster than other m files in Mathworks Database..maybe 10 times faster!
good thing is Matlab2014a added Fresnelc and Fresnels command but this little code you wrote works about 10 times or more faster than matlabs original command!
i recommend every one to use this code :)
very nice..thank you again