OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
mathfem.C File Reference
#include "mathfem.h"
#include "floatarray.h"

Go to the source code of this file.

Namespaces

 oofem
 the oofem namespace is to define a context or scope in which all oofem names are defined.
 

Macros

#define CUBIC_ZERO   1.0e-100
 

Functions

void oofem::cubic (double a, double b, double c, double d, double *r1, double *r2, double *r3, int *num)
 Solves cubic equation for real roots. More...
 
void oofem::cubic3r (double a, double b, double c, double d, double *r1, double *r2, double *r3, int *num)
 Solves cubic equation for real roots, assuming that if cubic polynomial given then the only possibility is that only three real roots exists. More...
 
int oofem::iperm (int val, int rank)
 Returns iperm of val, in specific rank. More...
 
void oofem::ls2fit (const FloatArray &x, const FloatArray &y, FloatArray &a)
 Least-square fit of 2nd degree polynomial $ y = a_0 + a_1 x + a_2 x^2 $. More...
 
double oofem::signum (double i)
 Returns the signum of given value (i = 0 returns 0, i < 0 returns -1, i > 0 returns 1) More...
 

Macro Definition Documentation

#define CUBIC_ZERO   1.0e-100

Definition at line 40 of file mathfem.C.

Referenced by oofem::cubic(), and oofem::cubic3r().


This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:32 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011