[oct-scm] [oct-git]OCT: A portable Lisp implementation for quad-double precision floats branch master updated. 405df618a38d3b8ddaae691f865bbf068e931ac5

Raymond Toy rtoy at common-lisp.net
Wed Mar 21 16:36:22 UTC 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OCT:  A portable Lisp implementation for quad-double precision floats".

The branch, master has been updated
       via  405df618a38d3b8ddaae691f865bbf068e931ac5 (commit)
      from  c388f81713d7b2a483000d3cee1af030ed2c1cac (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 405df618a38d3b8ddaae691f865bbf068e931ac5
Author: Raymond Toy <toy.raymond at gmail.com>
Date:   Wed Mar 21 09:35:22 2012 -0700

    Add Euler's constant and fix dependencies.
    
    oct.asd:
    o qd-const2 depends on qd-const.
    
    qd-const.lisp:
    o Add qd value for Euler's constant
    
    qd-const2.lisp:
    o Add qd-real value for Euler's constant.

diff --git a/oct.asd b/oct.asd
index ed7a586..3f8d70c 100644
--- a/oct.asd
+++ b/oct.asd
@@ -52,7 +52,7 @@
 	  :depends-on ("qd" "qd-const"))
    (:file "qd-class"
 	  :depends-on ("qd-fun"))
-   (:file "qd-const2" :depends-on ("qd-class"))
+   (:file "qd-const2" :depends-on ("qd-class" "qd-const"))
    (:file "qd-methods"
 	  :depends-on ("qd-class"))
    (:file "qd-reader"
diff --git a/qd-const.lisp b/qd-const.lisp
index 628a520..56840b7 100644
--- a/qd-const.lisp
+++ b/qd-const.lisp
@@ -3752,6 +3752,15 @@
 		   (%make-qd-d q0 q1 q2 q3))))
    "A table of cos(k/1024) for k = 1 to 256")
 
+(defconstant +qd-%gamma+
+  (multiple-value-bind (q0 q1 q2 q3)
+      (renorm-5 (scale-float (float 5199096506725913 1.0d0) -53)
+		(scale-float (float -6416270704492459 1.0d0) -110)
+		(scale-float (float -5430032177773649 1.0d0) -164)
+		(scale-float (float 7163319935831933 1.0d0) -218)
+		(scale-float (float -6507777405222912 1.0d0) -273))
+    (%make-qd-d q0 q1 q2 q3))
+  "Quad-double value of Euler's constant")
 
 #||
 
diff --git a/qd-const2.lisp b/qd-const2.lisp
index 2ad911d..e5e65e6 100644
--- a/qd-const2.lisp
+++ b/qd-const2.lisp
@@ -82,3 +82,7 @@
 (defconstant +qd-real-one+
   (make-instance 'qd-real :value (make-qd-d 1d0))
   "QD-REAL representation of 1")
+
+(defconstant +%gamma+
+  (make-instance 'qd-real :value octi::+qd-%gamma+)
+  "Euler's constant")
\ No newline at end of file

-----------------------------------------------------------------------

Summary of changes:
 oct.asd        |    2 +-
 qd-const.lisp  |    9 +++++++++
 qd-const2.lisp |    4 ++++
 3 files changed, 14 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
OCT:  A portable Lisp implementation for quad-double precision floats




More information about the oct-cvs mailing list