Jpp 21.0.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JMATH::roots_type Struct Reference

Auxiliary data structure for solution of quadratic equation. More...

#include <JMathSupportkit.hh>

Public Types

enum  ROOT_t { NONE_t , SINGLE_t , DOUBLE_t }
 

Public Member Functions

 roots_type ()
 Default constructor.
 
 roots_type (const double x)
 Single value constructor.
 
 roots_type (const double x1, const double x2)
 Double value constructor.
 

Public Attributes

double x1
 
double x2
 
enum JMATH::roots_type::ROOT_t roots
 type of solution
 

Detailed Description

Auxiliary data structure for solution of quadratic equation.

Definition at line 470 of file JMath/JMathSupportkit.hh.

Member Enumeration Documentation

◆ ROOT_t

Enumerator
NONE_t 

no solution

SINGLE_t 

single value

DOUBLE_t 

double value

Definition at line 511 of file JMath/JMathSupportkit.hh.

511 {
512 NONE_t, //!< no solution
513 SINGLE_t, //!< single value
514 DOUBLE_t //!< double value
515 } roots; //!< type of solution
enum JMATH::roots_type::ROOT_t roots
type of solution

Constructor & Destructor Documentation

◆ roots_type() [1/3]

JMATH::roots_type::roots_type ( )
inline

Default constructor.

Definition at line 475 of file JMath/JMathSupportkit.hh.

475 :
476 x1(0.0),
477 x2(0.0),
479 {}

◆ roots_type() [2/3]

JMATH::roots_type::roots_type ( const double x)
inline

Single value constructor.

Parameters
xx

Definition at line 487 of file JMath/JMathSupportkit.hh.

487 :
488 x1(x),
489 x2(x),
491 {}

◆ roots_type() [3/3]

JMATH::roots_type::roots_type ( const double x1,
const double x2 )
inline

Double value constructor.

Parameters
x1x1
x2x2

Definition at line 500 of file JMath/JMathSupportkit.hh.

501 :
502 x1(x1),
503 x2(x2),
505 {}

Member Data Documentation

◆ x1

double JMATH::roots_type::x1

Definition at line 508 of file JMath/JMathSupportkit.hh.

◆ x2

double JMATH::roots_type::x2

Definition at line 509 of file JMath/JMathSupportkit.hh.

◆ roots

enum JMATH::roots_type::ROOT_t JMATH::roots_type::roots

type of solution


The documentation for this struct was generated from the following file: