priceAt (supplyPoint) {
    return (supplyPoint <= this.yearDemand)
      ? this.constantFunction(supplyPoint)
      : Math.max(0, this.decreasingFunction(supplyPoint))
  }
/**
   * Gives the price at the given point of supply curve
   *
   * @param {*} supplyPoint
   */
Gives the price at the given point of supply curve
@param {*} supplyPoint
Gives the price at the given point of supply curve @param { * } supplyPoint
priceAt (supplyPoint) {
    return (supplyPoint <= this.yearDemand)
      ? this.constantFunction(supplyPoint)
      : Math.max(0, this.decreasingFunction(supplyPoint))
  }
priceAt ( supplyPoint ) { return ( supplyPoint <= this . yearDemand ) ? this . constantFunction ( supplyPoint ) : Math . max ( 0 , this . decreasingFunction ( supplyPoint ) ) }
Gives the price at the given point of supply curve
 @param {*} supplyPoint
Gives the price at the given point of supply curve @param { * } supplyPoint