# Exercise scaffold. Reference implementation is in a separate directory."""W01: exact quadratic rates. Inputs are int or Fraction, not binary floats."""fromdataclassesimportdataclassfromfractionsimportFractiondefrational(value):raiseNotImplementedError('Implement this contract from the book.')@dataclass(frozen=True)classQuadratic:a:Fractionb:Fractionc:Fractiondef__post_init__(self):raiseNotImplementedError('Implement this contract from the book.')defvalue(self,x):raiseNotImplementedError('Implement this contract from the book.')defaverage_rate(self,x,h):raiseNotImplementedError('Implement this contract from the book.')deftangent(self,x):raiseNotImplementedError('Implement this contract from the book.')