File size: 340 Bytes
89efdc8
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Exposure value from aperture and shutter
Composed by composer_v1 from typed moves; read back against its examples. expression of 5 moves; constants: none cited"""
import math
import re


def _nums(code):
    return [float(x) for x in re.findall(r"\d+(?:\.\d+)?", str(code))]


def compute(x1, x2):
    return math.log2(((x1 ** 2) / x2))