How can write these fuctions differently ?
def computeVoltages(Vs, TC, tValues):
return [Vs * (1 - e ** (-t / TC)) for t in tValues]
def computeTimeValues(TC, intervals):
time = []
width = 5 * TC / intervals
for i in range(intervals + 1):
time.append(i * width)
return time