ScalarHypCosine.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/MEAL/MEAL/ScalarHypCosine.h
10 
11 #ifndef __MEAL_ScalarHypCosine_H
12 #define __MEAL_ScalarHypCosine_H
13 
14 #include "MEAL/UnaryScalar.h"
15 
16 namespace MEAL {
17 
19  class ScalarHypCosine : public UnaryScalar
20  {
21 
22  public:
23 
24  // ///////////////////////////////////////////////////////////////////
25  //
26  // UnaryScalar implementation
27  //
28  // ///////////////////////////////////////////////////////////////////
29 
31  double function (double x) const;
32 
34  double dfdx (double x) const;
35 
36  // ///////////////////////////////////////////////////////////////////
37  //
38  // Function implementation
39  //
40  // ///////////////////////////////////////////////////////////////////
41 
43  std::string get_name () const;
44 
45  };
46 
47 }
48 
49 
50 #endif
const ScalarMath sinh(const ScalarMath &x)
Return a ScalarMath instance representing sinh(x)
Definition: ScalarMath.C:184
double function(double x) const
The function.
Definition: ScalarHypCosine.C:19
std::string get_name() const
Return the name of the class.
Definition: ScalarHypCosine.C:13
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
const ScalarMath cosh(const ScalarMath &x)
Return a ScalarMath instance representing cosh(x)
Definition: ScalarMath.C:192
double dfdx(double x) const
And its first derivative.
Definition: ScalarHypCosine.C:25

Generated using doxygen 1.8.17