#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <float.h>
#include <string.h>
Include dependency graph for basis.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | MACH_EPS mach_eps() |
| #define | MAX_EXP 1023 |
| #define | POSMAX 1e100 |
| #define | POSMIN posmin() |
| #define | LZS "l" |
| #define | LZP "" |
| #define | BASIS 2 |
| #define | EPSROOT epsroot() |
| #define | EPSQUAD epsquad() |
| #define | MAXROOT maxroot() |
| #define | PI pi() |
| #define | EXP_1 exp_1() |
| #define | ZERO (REAL)0.0 |
| #define | ONE (REAL)1.0 |
| #define | TWO (REAL)2.0 |
| #define | THREE (REAL)3.0 |
| #define | FOUR (REAL)4.0 |
| #define | FIVE (REAL)5.0 |
| #define | SIX (REAL)6.0 |
| #define | EIGHT (REAL)8.0 |
| #define | NINE (REAL)9.0 |
| #define | TEN (REAL)10.0 |
| #define | HALF (REAL)0.5 |
| #define | FABS(x) (REAL)fabs((double)(x)) |
| #define | SQRT(x) (REAL)sqrt((double)(x)) |
| #define | POW(x, y) |
| #define | SIN(x) (REAL)sin((double)(x)) |
| #define | COS(x) (REAL)cos((double)(x)) |
| #define | EXP(x) (REAL)exp((double)(x)) |
| #define | LOG(x) (REAL)log((double)(x)) |
| #define | ATAN(x) (REAL)atan((double)(x)) |
| #define | ACOS(x) (REAL)acos((double)(x)) |
| #define | COSH(x) (REAL)cosh((double)(x)) |
| #define | sign(x, y) |
| #define | min(a, b) (((a) < (b)) ? (a) : (b)) |
| #define | max(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | SWAP(typ, a, b) |
| #define | ABS(X) (((X) >= ZERO) ? (X) : -(X)) |
| #define | SIGN(X, Y) |
| #define | SQR(X) ((X) * (X)) |
| #define | FORMAT_IN "%lg" |
| #define | FORMAT_LF "% "LZP"f " |
| #define | FORMAT_126LF "% 12.6"LZP"f " |
| #define | FORMAT_2010LF "% 20.10"LZP"f " |
| #define | FORMAT_2016LF "% 20.16"LZP"f " |
| #define | FORMAT_LE "% "LZP"e " |
| #define | FORMAT_2016LE "% 20.16"LZP"e " |
Typedefs | |
| typedef double | REAL |
| typedef long double | LONG_REAL |
| typedef REAL(* | ansatzfnk )(int i, REAL x) |
| typedef REAL(* | approxfnk )(REAL c[], REAL x) |
| typedef void(* | ableitfnk )(REAL x, REAL c[], REAL *d) |
| typedef REAL(* | dglfnk )(REAL x, REAL y) |
| typedef void(* | dglsysfnk )(REAL x, REAL y[], REAL f[]) |
| typedef void(* | rndbedfnk )(REAL ya[], REAL yb[], REAL r[]) |
| typedef REAL | abl_mat1 [4][2] |
| typedef REAL | abl_mat2 [6][2] |
| typedef REAL | mat4x4 [4][4] |
| typedef REAL(* | REALFCT )(REAL) |
| typedef int(* | FNFCT )(int, REAL[], REAL[]) |
| typedef int(* | JACOFCT )(int, REAL[], REAL *[]) |
Enumerations | |
| enum | boolean { FALSE, TRUE } |
| enum | fehler_t { KEIN_FEHLER, WARNUNG, UNBEKANNT, FATAL } |
Functions | |
| int | basis (void) |
| REAL | mach_eps (void) |
| REAL | epsroot (void) |
| REAL | epsquad (void) |
| REAL | maxroot (void) |
| REAL | posmin (void) |
| REAL | pi (void) |
| REAL | exp_1 (void) |
| REAL | sqr (REAL x) |
| void | fehler_melden (char text[], int fehlernummer, char dateiname[], int zeilennummer) |
| int | umleiten (int argc, char *argv[]) |
| void | readln (void) |
| void | getline (char kette[], int limit) |
| int | intervall (int n, REAL xwert, REAL x[]) |
| REAL | horner (int n, REAL a[], REAL x) |
| REAL | norm_max (REAL vektor[], int n) |
| REAL | skalprod (REAL v[], REAL w[], int n) |
| void | copy_vector (REAL ziel[], REAL quelle[], int n) |
| long double | sqrtlong (long double x) |
| int | comdiv (REAL ar, REAL ai, REAL br, REAL bi, REAL *cr, REAL *ci) |
| REAL | comabs (REAL ar, REAL ai) |
| void | quadsolv (REAL ar, REAL ai, REAL br, REAL bi, REAL cr, REAL ci, REAL *tr, REAL *ti) |
| void | SetVec (int n, REAL x[], REAL val) |
| void | CopyVec (int n, REAL source[], REAL dest[]) |
| int | ReadVec (FILE *fp, int n, REAL x[]) |
| int | ReadVec1 (FILE *fp, int n, REAL x[]) |
| int | WriteVec (FILE *fp, int n, REAL x[]) |
| int | WriteVec1 (FILE *fp, int n, REAL x[]) |
| void | SetMat (int m, int n, REAL *a[], REAL val) |
| void | CopyMat (int m, int n, REAL *source[], REAL *dest[]) |
| int | ReadMat (FILE *fp, int m, int n, REAL *a[]) |
| int | ReadMat1 (FILE *fp, int m, int n, REAL *a[]) |
| int | WriteMat (FILE *fp, int m, int n, REAL *mat[]) |
| int | WriteMat1 (FILE *fp, int m, int n, REAL *mat[]) |
| int | WriteHead (FILE *fp, char *s) |
| int | WriteEnd (FILE *fp) |
| void | LogError (char *s, int rc, char *file, int line) |
|
|
Definition at line 452 of file basis.h. Referenced by balance(), comabs(), comdiv(), elmhes(), hqr2(), hqrvec(), and norm_1(). |
|
|
|
|
|
|
|
|
Definition at line 328 of file basis.h. Referenced by eigen(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 411 of file basis.h. Referenced by norm_max(). |
|
|
|
|
|
Definition at line 465 of file basis.h. Referenced by WriteMat(), WriteMat1(), WriteVec(), and WriteVec1(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 461 of file basis.h. Referenced by ReadMat(), ReadMat1(), ReadVec(), and ReadVec1(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 364 of file basis.h. Referenced by quadsolv(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 206 of file basis.h. Referenced by maxroot(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: (REAL)pow((double)(x), \ /*.IX{POW}*/ \ (double)(y)) |
|
|
Value: |
|
|
Value: |
|
|
|
|
|
|
|
|
Definition at line 458 of file basis.h. Referenced by hqrvec(). |
|
|
Definition at line 416 of file basis.h. Referenced by comabs(), epsroot(), hqr2(), orthes(), and quadsolv(). |
|
|
Value: /* swap two objects of */ \ /*.IX{SWAP}*/ \ { typ temp; temp = a; a = b; b = temp; } |
|
|
|
|
|
|
|
|
Definition at line 348 of file basis.h. Referenced by hqrvec(), and quadsolv(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 295 of file basis.h. Referenced by vmalloc(). |
|
|
Definition at line 189 of file basis.h. Referenced by balance(), balback(), comabs(), comdiv(), convertMatrix(), convertVector(), copy_vector(), eigen(), eigenValues(), elmhes(), elmtrans(), epsquad(), epsroot(), hqr2(), hqrvec(), maxroot(), norm_1(), norm_max(), orthes(), orttrans(), pi(), pmatmalloc(), quadsolv(), ReadVec(), ReadVec1(), sqr(), and vmalloc(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by balance(). |
|
||||||||||||
|
Definition at line 344 of file basis_r.cpp. References ABS, ONE, REAL, SQRT, SWAP, and ZERO. Referenced by norm_1(). |
|
||||||||||||||||||||||||||||
|
Definition at line 381 of file basis_r.cpp. |
|
||||||||||||||||
|
Definition at line 58 of file basis_r.cpp. References REAL. |
|
||||||||||||||||||||
|
Definition at line 191 of file basis_r.cpp. |
|
||||||||||||||||
|
|
|
|
Definition at line 731 of file basis_r.cpp. |
|
|
Definition at line 710 of file basis_r.cpp. |
|
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||
|
Referenced by main(). |
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
Definition at line 676 of file basis_r.cpp. |
|
|
|
|
|
Definition at line 224 of file basis_r.cpp. |
|
||||||||||||
|
Definition at line 34 of file basis_r.cpp. |
|
|
Definition at line 187 of file basis_r.cpp. References REAL. Referenced by quadsolv(), and RunPIDController(). |
|
|
|
|
||||||||||||||||||||||||||||||||||||
|
Definition at line 255 of file basis_r.cpp. |
|
|
|
|
||||||||||||||||||||
|
Definition at line 439 of file basis_r.cpp. References FORMAT_IN. |
|
||||||||||||||||||||
|
Definition at line 477 of file basis_r.cpp. References FORMAT_IN. |
|
||||||||||||||||
|
Definition at line 82 of file basis_r.cpp. |
|
||||||||||||||||
|
Definition at line 103 of file basis_r.cpp. |
|
||||||||||||||||||||
|
Definition at line 551 of file basis_r.cpp. |
|
||||||||||||||||
|
Definition at line 117 of file basis_r.cpp. |
|
||||||||||||||||
|
|
|
|
Definition at line 21 of file basis_r.cpp. References REAL. |
|
|
|
|
||||||||||||
|
|
|
|
Definition at line 640 of file basis_r.cpp. References Separator. |
|
||||||||||||
|
Definition at line 584 of file basis_r.cpp. References Separator. |
|
||||||||||||||||||||
|
Definition at line 492 of file basis_r.cpp. References FORMAT_126LF. |
|
||||||||||||||||||||
|
Definition at line 532 of file basis_r.cpp. References FORMAT_126LF. |
|
||||||||||||||||
|
Definition at line 125 of file basis_r.cpp. References FORMAT_126LF. |
|
||||||||||||||||
|
Definition at line 156 of file basis_r.cpp. References FORMAT_126LF. |
1.3.9.1