Anonymous function

Created an anonymous function to calculate resistance in ohms.