00001 00002 //=======================================================// _\|/_ 00003 // __ _____ ___ ___ // /|\ ~ 00004 // / | ^ | \ | ^ | \ // _\|/_ 00005 // \__ | / \ |___/ | / \ |___/ // /|\ ~ 00006 // \ | /___\ | \ | /___\ | \ // _\|/_ 00007 // ___/ | / \ | \ |____ / \ |___/ // /|\ ~ 00008 // // _\|/_ 00009 //=======================================================// /|\ ~ 00010 00012 // 00013 // version 1: Dec 1992 Piet Hut, Steve McMillan, Jun Makino 00014 // version 2: 00015 // 00016 // This file includes: 00017 // 1) .... 00018 00019 #ifndef STARLAB_UTIL_MATH_H 00020 # define STARLAB_UTIL_MATH_H 00021 00022 #include "stdinc.h" 00023 00024 bool twiddles(real a, real b, real eps = 1.e-12); 00025 00026 real adjust_number_to_power(real newstep, real max_step_size); 00027 00028 real asinh(real); // inverse of sinh() 00029 int sign(real); 00030 real acosh(real); // inverse of cosh() 00031 00032 #endif 00033 00034 //=======================================================================// 00035 // +---------------+ _\|/_ +------------------------------\\ ~ 00036 // | the end of: | /|\ | inc/util_math.h 00037 // +---------------+ +------------------------------// 00038 //========================= STARLAB =====================================\\ ~ 00039