xc
Macaulay.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // xc utils library; general purpose classes and functions.
4 //
5 // Copyright (C) Luis C. Pérez Tato
6 //
7 // XC utils is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // This software is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program.
19 // If not, see <http://www.gnu.org/licenses/>.
20 //----------------------------------------------------------------------------
21 //Macaulay.h
22 
23 #ifndef MACAULAY_H
24 #define MACAULAY_H
25 
26 #include "OpBinario.h"
27 #include "operator_names.h"
28 
29 class Rama;
30 
35 class OpMacaulay0: public OpBinario
36  {
37  protected:
38  virtual double get_val(const double &x,const double &a) const;
39  public:
40  OpMacaulay0(void) : OpBinario() {}
41  inline virtual const std::string &getName(void) const
42  { return nmbOpMacaulay0; }
43  virtual int GetPrioridad(void) const
44  { return 4; }
45  inline virtual Posicion GetPosicion(void) const
46  { return prefija; }
47  virtual const Operando &Opera(const Operando *v1= NULL,const Operando *v2= NULL) const;
48  };
49 
50 
55 class OpMacaulayN: public OpMacaulay0
56  {
57  size_t N;
58  std::string nmbOpMacaulayN;
59  protected:
60  virtual double get_val(const double &x,const double &a) const;
61  public:
62  OpMacaulayN(size_t n=1);
63  inline virtual const std::string &getName(void) const
64  { return nmbOpMacaulayN; }
65  virtual ~OpMacaulayN(void)
66  {}
67  };
68 
69 #endif
virtual const std::string & getName(void) const
Return the operand name.
Definition: Macaulay.h:63
Macaulay function F0 (See Mecánica de materiales Gere-Timoshenko paragraph 7.9).
Definition: Macaulay.h:35
Operando.
Definition: Operando.h:42
virtual const std::string & getName(void) const
Return the operand name.
Definition: Macaulay.h:41
Definition: Rama.h:33
Macaulay function Fn (Ver Mecánica de materiales Gere-Timoshenko paragraph 7.9).
Definition: Macaulay.h:55
Operador binario.
Definition: OpBinario.h:32