[gcalctool/gcalctool-newui2] ...



commit c4da3ca67d57f3e8bbcef7c12f147921acab5792
Author: Robert Ancell <robert ancell gmail com>
Date:   Thu Jul 16 13:47:45 2009 +1000

    ...

 src/get.h |    2 --
 src/mp.c  |    5 +----
 2 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/get.h b/src/get.h
index 807ae24..41975bf 100644
--- a/src/get.h
+++ b/src/get.h
@@ -33,8 +33,6 @@
 #define R_ZEROES   "showzeroes"
 #define R_TSEP     "showthousands"
 #define R_WORDLEN  "wordlen"
-#define R_XPOS     "xposition"
-#define R_YPOS     "yposition"
 
 extern const char *Rbstr[];
 extern const char *Rtstr[];
diff --git a/src/mp.c b/src/mp.c
index e9f8044..1fdfced 100644
--- a/src/mp.c
+++ b/src/mp.c
@@ -1094,15 +1094,12 @@ mp_ln(const MPNumber *x, MPNumber *z)
 }
 
 
-/*  MP precision common log.
- *
- *  1. log10(x) = log10(e) * log(x)
- */
 void
 mp_logarithm(int n, const MPNumber *x, MPNumber *z)
 {
     MPNumber t1, t2;
 
+    /* logn(x) = ln(x) / ln(n) */
     mp_set_from_integer(n, &t1);
     mp_ln(&t1, &t1);
     mp_ln(x, &t2);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]