Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

csfl::IFLinear Class Reference

#include <function.h>

Inheritance diagram for csfl::IFLinear::

csfl::IFunction csfl::ISFLObject List of all members.

Public Methods

 IFLinear (double _a, double _b)
 IFLinear (IFLinear *_f)
double GetAngular () const
double GetLinear () const
double Eval (double _pos)

Private Attributes

double a
double b

Detailed Description

Classe que representa uma função linear do tipo a*x + b.


Constructor & Destructor Documentation

csfl::IFLinear::IFLinear ( double _a,
double _b ) [inline]
 

Os argumentos “_a“ e “_b“ representam os coeficiente da função linear.

csfl::IFLinear::IFLinear ( IFLinear * _f ) [inline]
 


Member Function Documentation

double csfl::IFLinear::Eval ( double _pos ) [inline, virtual]
 

Retorna o valor da função para um dado valor de x = _pos.

Reimplemented from csfl::IFunction.

double csfl::IFLinear::GetAngular ( ) const [inline]
 

Retorna o coeficiente angular da função.

double csfl::IFLinear::GetLinear ( ) const [inline]
 

Retorna o coeficiente linear da função.


Member Data Documentation

double csfl::IFLinear::a [private]
 

double csfl::IFLinear::b [private]
 


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

 

CFD Project | Documents | Downloads | Contact us | Use Terms

 

© SINMEC/EMC/UFSC, 2001.

All rights reserved.

Last Update: Jan. 18, 2002

 Webmaster