def hyperfocal_distance(f, N, c):
 f = sympify(f)
 N = sympify(N)
 c = sympify(c)
 return ((1 / (N * c)) * (f ** 2))

def hyperfocal_distance ( f , N , c ) : f = sympify ( f ) N = sympify ( N ) c = sympify ( c ) return ( ( 1 / ( N * c ) ) * ( f ** 2 ) )
parameters f: sympifiable focal length of a given lens n: sympifiable f-number of a given lens c: sympifiable circle of confusion of a given image format example .