ScalarPower.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/ScalarPower.h
10 
11 #ifndef __MEAL_ScalarPower_H
12 #define __MEAL_ScalarPower_H
13 
14 #include "MEAL/BinaryScalar.h"
15 
16 namespace MEAL {
17 
19  class ScalarPower : public BinaryScalar
20  {
21 
22  public:
23 
24  // ///////////////////////////////////////////////////////////////////
25  //
26  // BinaryScalar implementation
27  //
28  // ///////////////////////////////////////////////////////////////////
29 
31  double function (double arg1, double arg2) const;
32 
34  double partial_arg1 (double arg1, double arg2) const;
35 
37  double partial_arg2 (double arg1, double arg2) const;
38 
39  // ///////////////////////////////////////////////////////////////////
40  //
41  // Function implementation
42  //
43  // ///////////////////////////////////////////////////////////////////
44 
46  std::string get_name () const;
47 
48  };
49 
50 }
51 
52 
53 #endif
const ScalarMath log(const ScalarMath &x)
Return a ScalarMath instance representing log(x)
Definition: ScalarMath.C:232
const ScalarMath pow(const ScalarMath &x, const ScalarMath &y)
Return a ScalarMath instance representing x^y.
Definition: ScalarMath.C:264
std::string get_name() const
Return the name of the class.
Definition: ScalarPower.C:15
double partial_arg2(double arg1, double arg2) const
Return the partial derivative with respect to the exponent, y.
Definition: ScalarPower.C:40
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
double partial_arg1(double arg1, double arg2) const
Return the partial derivative with respect to the base, x.
Definition: ScalarPower.C:31
Project< Scalar > arg2
The first argument to the binary operation.
Definition: BinaryRule.h:60
double function(double arg1, double arg2) const
Return x^y.
Definition: ScalarPower.C:23
Project< Scalar > arg1
The first argument to the binary operation.
Definition: BinaryRule.h:57

Generated using doxygen 1.8.17