QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
quadratic Class Reference

#include <quadratic.hpp>

+ Collaboration diagram for quadratic:

Public Member Functions

 quadratic (Real a, Real b, Real c)
 
Real turningPoint () const
 
Real valueAtTurningPoint () const
 
Real operator() (Real x) const
 
Real discriminant () const
 
bool roots (Real &x, Real &y) const
 

Private Attributes

Real a_
 
Real b_
 
Real c_
 

Detailed Description

Definition at line 32 of file quadratic.hpp.

Constructor & Destructor Documentation

◆ quadratic()

quadratic ( Real  a,
Real  b,
Real  c 
)

Definition at line 25 of file quadratic.cpp.

Member Function Documentation

◆ turningPoint()

Real turningPoint ( ) const

Definition at line 27 of file quadratic.cpp.

+ Here is the caller graph for this function:

◆ valueAtTurningPoint()

Real valueAtTurningPoint ( ) const

Definition at line 31 of file quadratic.cpp.

+ Here is the call graph for this function:

◆ operator()()

Real operator() ( Real  x) const

Definition at line 35 of file quadratic.cpp.

◆ discriminant()

Real discriminant ( ) const

Definition at line 39 of file quadratic.cpp.

+ Here is the caller graph for this function:

◆ roots()

bool roots ( Real x,
Real y 
) const

Definition at line 44 of file quadratic.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ a_

Real a_
private

Definition at line 43 of file quadratic.hpp.

◆ b_

Real b_
private

Definition at line 43 of file quadratic.hpp.

◆ c_

Real c_
private

Definition at line 43 of file quadratic.hpp.