Skip to content

Commit

Permalink
spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderthclark committed Jul 5, 2024
1 parent a588a73 commit a5aef8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion freeride/curves.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ def _repr_latex_(self):
return rf"${self.x} \mapsto {body}$"



class QuadraticElement(np.polynomial.Polynomial):
"""
Extends the PolyBase class and represents a quadratic function used in revenue and cost curves.
Expand Down Expand Up @@ -376,6 +375,7 @@ def from_formula(cls, equation: str):
a, b, c = _quadratic_formula(equation)
return cls(c, b, a, domain = (-np.inf, np.inf))


class BaseQuadratic:

def __init__(self, intercept=None, linear_coef=None, quadratic_coef=None, elements=None):
Expand Down Expand Up @@ -1361,6 +1361,7 @@ def total_revenue(self):

return BaseQuadratic(elements=elements)


class Supply(Affine):

def __init__(self, intercept=None, slope=None, elements=None, inverse=True):
Expand Down

0 comments on commit a5aef8c

Please sign in to comment.