Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Namespaces | Macros | Functions
equation.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cmath>
#include <ctype.h>
#include "logging.h"
#include "complex.h"
#include "object.h"
#include "vector.h"
#include "matrix.h"
#include "matvec.h"
#include "dataset.h"
#include "strlist.h"
#include "netdefs.h"
#include "equation.h"
#include "evaluate.h"
#include "differentiate.h"
#include "constants.h"
#include "range.h"
#include "exception.h"
#include "exceptionstack.h"
#include "gperfapphash.cpp"

Go to the source code of this file.

Data Structures

struct  qucs::pconstant
 

Namespaces

 qucs
 

Macros

#define A(a)   ((assignment *) (a))
 
#define N(n)   ((node *) (n))
 
#define C(c)   ((constant *) (c))
 
#define R(r)   ((reference *) (r))
 
#define D(con)   (C(con)->d)
 
#define isConst(n)   ((n)->getTag()==CONSTANT && C(n)->getType()==TAG_DOUBLE)
 
#define isZero(n)   (isConst(n) && D(n) == 0.0)
 
#define isOne(n)   (isConst(n) && D(n) == 1.0)
 
#define defCon(res, val)   res = new constant (TAG_DOUBLE); C(res)->d = val;
 
#define isDDX()
 
#define foreach_equation(eqn)
 

Functions

static char * qucs::Cplx2String (nr_complex_t c)
 

Macro Definition Documentation

#define A (   a)    ((assignment *) (a))

Definition at line 57 of file equation.cpp.

#define C (   c)    ((constant *) (c))

Definition at line 59 of file equation.cpp.

#define D (   con)    (C(con)->d)

Definition at line 499 of file equation.cpp.

#define defCon (   res,
  val 
)    res = new constant (TAG_DOUBLE); C(res)->d = val;

Definition at line 503 of file equation.cpp.

#define foreach_equation (   eqn)
Value:
for (assignment * (eqn) = A (equations); \
(eqn) != NULL; (eqn) = A ((eqn)->getNext ()))
#define A(a)
Definition: equation.cpp:57

Definition at line 1394 of file equation.cpp.

#define isConst (   n)    ((n)->getTag()==CONSTANT && C(n)->getType()==TAG_DOUBLE)

Definition at line 500 of file equation.cpp.

#define isDDX ( )
Value:
(nargs == 2 && !strcmp (n, "ddx") && \
args->getNext()->getTag () == REFERENCE)
n
Definition: parse_citi.y:147
args
nargs

Definition at line 815 of file equation.cpp.

#define isOne (   n)    (isConst(n) && D(n) == 1.0)

Definition at line 502 of file equation.cpp.

#define isZero (   n)    (isConst(n) && D(n) == 0.0)

Definition at line 501 of file equation.cpp.

#define N (   n)    ((node *) (n))

Definition at line 58 of file equation.cpp.

#define R (   r)    ((reference *) (r))

Definition at line 60 of file equation.cpp.