ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


math

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
math [2019/04/20 19:57] – [e] korshunmath [2019/04/20 19:58] – [Significant square roots and logarithms] korshun
Line 64: Line 64:
 Precalculated to maximum precision. The precalculated logarithms are used to implement ''ln'' and ''log10''. Precalculated to maximum precision. The precalculated logarithms are used to implement ''ln'' and ''log10''.
  
-  * ''fixed SQRT_2 1.41421356237;'' -- sqrt(2) +  * ''#define SQRT_2 1.41421356237'' -- sqrt(2) 
-  * ''fixed LOG2_E 1.44269504089;'' -- log2(e) +  * ''#define LOG2_E 1.44269504089'' -- log2(e) 
-  * ''fixed LOG2_10 3.32192809489;'' -- log2(10)+  * ''#define LOG2_10 3.32192809489'' -- log2(10)
  
 ===== Generic math functions ===== ===== Generic math functions =====
math.txt · Last modified: 2019/08/26 21:26 by korshun