Add polynomial for log approximation
This commit is contained in:
1 parent
99e5e26c7b
commit
2376d4f580
4 files changed
+18
No files matched your search
@@ -18,3 +18,13 @@
|
|||||||
log_FAC1:
|
log_FAC1:
|
||||||
|
|
||||||
+STUB_IMPLEMENTATION
|
+STUB_IMPLEMENTATION
|
||||||
|
|
||||||
|
|
||||||
|
poly_log:
|
||||||
|
|
||||||
|
!byte $03 ; series length - 1
|
||||||
|
|
||||||
|
+PUT_CONST_POLY_LOG_1
|
||||||
|
+PUT_CONST_POLY_LOG_2
|
||||||
|
+PUT_CONST_POLY_LOG_3
|
||||||
|
+PUT_CONST_POLY_LOG_4
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Part of the polynomial for log approximation. This is a well known polynomial taken from the book "Computer Approximations" by John Fraser Hart et al. (ISBN 0-88275-642-7) according to https://www.c64-wiki.com/wiki/POLY1
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Part of the polynomial for log approximation. This is a well known polynomial taken from the book "Computer Approximations" by John Fraser Hart et al. (ISBN 0-88275-642-7) according to https://www.c64-wiki.com/wiki/POLY1
|
||||||
@@ -78,6 +78,12 @@ std::vector<ConstEntry> GLOBAL_constants =
|
|||||||
ConstEntry( "POLY_EXP_6", 0.24022638460 ),
|
ConstEntry( "POLY_EXP_6", 0.24022638460 ),
|
||||||
ConstEntry( "POLY_EXP_7", 0.69314718618 ),
|
ConstEntry( "POLY_EXP_7", 0.69314718618 ),
|
||||||
ConstEntry( "POLY_EXP_8", 1.0 ),
|
ConstEntry( "POLY_EXP_8", 1.0 ),
|
||||||
|
|
||||||
|
// Constants for log approximation, source as for exp above
|
||||||
|
ConstEntry( "POLY_LOG_1", 0.43425594189 ),
|
||||||
|
ConstEntry( "POLY_LOG_2", 0.57658454124 ),
|
||||||
|
ConstEntry( "POLY_LOG_3", 0.96180075919 ),
|
||||||
|
ConstEntry( "POLY_LOG_4", 2.8853900731 ),
|
||||||
};
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in new issue
Block a user