Arc function added with theta as a parameter