def calculate_components(Vin, Vref, gain): """ Calculate the required components for the LM3915 circuit.