The title question sums it all.
You may use algorithmicx package, it allows function typesetting.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
4 years ago