From 2f578d1a2ab46b92984e393542995218d5828542 Mon Sep 17 00:00:00 2001 From: LYND$KG <60162813+lyndskg@users.noreply.github.com> Date: Sun, 7 Jan 2024 08:09:14 -0500 Subject: [PATCH] Update blackScholesModel.cpp --- src/blackScholesModel.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/blackScholesModel.cpp b/src/blackScholesModel.cpp index 64b6176..a6a168a 100644 --- a/src/blackScholesModel.cpp +++ b/src/blackScholesModel.cpp @@ -15,12 +15,12 @@ using namespace std; -// ---------------------------------------------------------------------------- +// -------------------------------------------------------------------------------------------------------- // "blackScholesModel" Class Member Function Implementations -// ---------------------------------------------------------------------------- +// -------------------------------------------------------------------------------------------------------- -/*------------------------------ CONSTRUCTORS ------------------------------*/ +/*---------------------------------------- CONSTRUCTORS ------------------------------------------------*/ // Default constructor. blackScholesModel::blackScholesModel() { // Initialize member variables directly. @@ -63,8 +63,8 @@ blackScholesModel::blackScholesModel(double underlyingPrice, double strikePrice, K_ = calculateK(d1_); } -/*------------------------------ KEY MEMBER FUNCTIONS ------------------------------*/ -/*------------------------------ { math } ------------------------------*/ +/*----------------------------------------- KEY MEMBER FUNCTIONS -----------------------------------------*/ +/*----------------------------------------- { math } -----------------------------------------*/ // Defines the option pricing function and calculates the option price using the Black-Scholes formula. @@ -166,7 +166,7 @@ double blackScholesModel::calculateK(double d) const { } // calculateK() -/*-------------------------------- SETTER METHODS --------------------------------*/ +/*-------------------------------------------- SETTER METHODS --------------------------------------------*/ // Setter method for the underlying price of the Black-Scholes model. void blackScholesModel::setUnderlyingPrice(const double& value) { @@ -222,7 +222,7 @@ void blackScholesModel::setK(const double& value) const { } // setK() -/*-------------------------------- GETTER METHODS --------------------------------*/ +/*------------------------------------------- GETTER METHODS -------------------------------------------*/ // Getter method for the underlying price of the Black-Scholes model. const double& blackScholesModel::getUnderlyingPrice() const {