Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

BasicMath.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------------
00002 //
00003 //  Thomas Berger (main author), Pepijn Schreinemachers, and Thorsten Arnold
00004 //
00005 //
00006 //  Hohenheim University (490d)
00007 //  Professorship for Land Use Economics in the Tropics and Subtropics
00008 //
00009 //  May not be distributed without permission by main author
00010 //
00011 //  File:       BasicMath.h (formerly part of funktio9.h)
00012 //
00013 //  Contents:   Basic mathematics functions as used by agents
00014 //
00015 //
00016 //
00017 //------------------------------------------------------------------------------
00018 
00019 
00020 #ifndef _BasicMath_h
00021 #define _BasicMath_h
00022 
00023 #include <math.h>
00024 
00025 //rounding functions
00026 double round1(int, double);
00027 double round2(double, double);
00028 
00029 // Folgende aus allgem9.h
00030 int min2(int x, int y);
00031 double min2(double x, double y);
00032 int max2(int x, int y);
00033 double max2(double x, double y);
00034 double maxVector(double* x, int len);
00035 double minVector(double* x, int len);
00036 int maxPos(double* x, int len);
00037 int minPos(double* x, int len);
00038 double sumVector(double* x, int len);
00039 
00040 
00041 // Folgende aus funktio9.h
00042 // agentF agentL aliste bwmarkt MatrixDouble
00043 int max(int a, int b);
00044 // agentF agentL aliste bwmarkt MatrixDouble  sim_main allgem9
00045 int min(int a, int b);
00046 double max(double a, double b);
00047 double min(double a, double b);
00048 
00049 // -
00050 int excel_modulo(int n, int d);
00051 #endif 

Generated on Thu Aug 28 12:38:44 2008 for MPMAS by  doxygen 1.3.9.1