/[oct]/oct/qd-complex.lisp
ViewVC logotype

Log of /oct/qd-complex.lisp

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Tag:

Revision 1.38 - (view) (annotate) - [select for diffs]
Sat Oct 13 02:14:43 2007 UTC (6 years, 6 months ago) by rtoy
Branch: MAIN
CVS Tags: GIT_CONVERSION, HEAD, THREE-ARG-BRANCH-BASE, three-arg-branch-2007-11-07, three-arg-branch-merged-2007-11-07
Branch point for: THREE-ARG-BRANCH
Changes since 1.37: +1 -1 lines
Diff to previous 1.37
Use package #:oct, not #:qd.

Revision 1.37 - (view) (annotate) - [select for diffs]
Tue Sep 18 12:46:36 2007 UTC (6 years, 7 months ago) by rtoy
Branch: MAIN
Changes since 1.36: +7 -7 lines
Diff to previous 1.36
Add method RATIONAL to convert a quad-double to a rational.

qd-package.lisp:
o Appropriately shadow and export RATIONAL.
o Need to export WITH-QD-PARTS from QDI.

qd-methods.lisp:
o Define methods for RATIONAL for reals and qd-reals.

qd-complex.lisp:
o Use CL:RATIONAL as appropriate for the CL rational type.

Revision 1.36 - (view) (annotate) - [select for diffs]
Wed Sep 12 21:01:13 2007 UTC (6 years, 7 months ago) by rtoy
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35
qd-package.lisp:
o Rearrange some exports so the CMU ones are all grouped together.
o Export new constants pi/2, pi/4, 2pi, and log2.
o Export the qd-real and qd-complex types.

qd-methods.lisp:
o Define new constants for pi/2, pi/4, 2pi, and log2.
o Update some of the macrolets to work with a modern-mode lisp, like
  Allegro.

qd-complex.lisp:
o Use the new constants as needed.

Revision 1.35 - (view) (annotate) - [select for diffs]
Fri Aug 31 21:13:36 2007 UTC (6 years, 7 months ago) by rtoy
Branch: MAIN
Changes since 1.34: +1 -1 lines
Diff to previous 1.34
qd-class.lisp:
o Oops.  Forgot to rename the defgenerics.

qd-complex.lisp:
o QLOG no longer exists.  Use LOG.

qd-methods.lisp:
o QLOG no longer exists.  Use LOG.

Revision 1.34 - (view) (annotate) - [select for diffs]
Fri Aug 31 03:11:00 2007 UTC (6 years, 7 months ago) by rtoy
Branch: MAIN
Changes since 1.33: +16 -16 lines
Diff to previous 1.33
Get rid of the extra layer of function calls and define the special
functions as methods directly.

Revision 1.33 - (view) (annotate) - [select for diffs]
Thu Aug 30 23:42:24 2007 UTC (6 years, 7 months ago) by rtoy
Branch: MAIN
Changes since 1.32: +33 -0 lines
Diff to previous 1.32
Add methods to handle QD-REAL and CL:COMPLEX and vice-versa for the
four basic arithmetic operations.

Revision 1.32 - (view) (annotate) - [select for diffs]
Tue Aug 28 16:01:08 2007 UTC (6 years, 7 months ago) by rtoy
Branch: MAIN
Changes since 1.31: +34 -4 lines
Diff to previous 1.31
qd-complex.lisp:
o Add ADD1 and SUB1 methods so we can use 1+ and 1- on quad-doubles.
o Add INCF and DECF macros to support quad-doubles.

qd-package.lisp:
o Forgot to shadow REALP, COMPLEXP, and NUMBERP, previously.
o Shadow and export INCF and DECF.

Revision 1.31 - (view) (annotate) - [select for diffs]
Tue Aug 28 14:12:53 2007 UTC (6 years, 7 months ago) by rtoy
Branch: MAIN
Changes since 1.30: +5 -0 lines
Diff to previous 1.30
Add ADD1 method for QD-COMPLEX.

Revision 1.30 - (view) (annotate) - [select for diffs]
Tue Aug 28 00:56:18 2007 UTC (6 years, 7 months ago) by rtoy
Branch: MAIN
Changes since 1.29: +12 -0 lines
Diff to previous 1.29
qd-package.lisp:
o Shadow REALP, COMPLEXP, and NUMBERP

qd-complex.lisp:
o Extend REALP, COMPLEXP, and NUMBERP to recognize QD-REAL and
  QD-COMPLEX types.

Revision 1.29 - (view) (annotate) - [select for diffs]
Mon Aug 27 17:49:19 2007 UTC (6 years, 7 months ago) by rtoy
Branch: MAIN
Changes since 1.28: +1 -1 lines
Diff to previous 1.28
Use uninterned symbols for IN-PACKAGE.

Revision 1.28 - (view) (annotate) - [select for diffs]
Sun Aug 26 14:37:48 2007 UTC (6 years, 8 months ago) by rtoy
Branch: MAIN
Changes since 1.27: +16 -0 lines
Diff to previous 1.27
qd-methods.lisp:
o Oops.  Move COERCE to qd-complex.lisp because we use the #q reader
  macro.  (This needs to be reorganized better.)
o Add RANDOM methods so we can generate quad-double random numbers.

qd-package.lisp:
o Shadow RANDOM so we can add our own RANDOM to generate quad-doubles.

qd-complex.lisp:
o COERCE moved here.

Revision 1.27 - (view) (annotate) - [select for diffs]
Sat Aug 25 17:08:48 2007 UTC (6 years, 8 months ago) by rtoy
Branch: MAIN
Changes since 1.26: +25 -0 lines
Diff to previous 1.26
Add license information (MIT).

Revision 1.26 - (view) (annotate) - [select for diffs]
Thu Aug 23 18:42:28 2007 UTC (6 years, 8 months ago) by toy
Branch: MAIN
Changes since 1.25: +3 -0 lines
Diff to previous 1.25
Add method for UNARY-DIVIDE of QD-COMPLEX.

Revision 1.25 - (view) (annotate) - [select for diffs]
Thu Aug 23 17:15:06 2007 UTC (6 years, 8 months ago) by toy
Branch: MAIN
Changes since 1.24: +57 -2 lines
Diff to previous 1.24
qd-complex.lisp:
o Moved some methods from qd-methods.lisp to here.
o Was missing TWO-ARG-+ for qd-complex and qd-real (and vice versa)
o Fixed mistake in TWO-ARG-- (QD-COMPLEX REAL)
o Fixed mistake in TWO-ARG-- (QD-COMPLEX CL:COMPLEX)
o Was missing TWO-ARG-- (QD_COMPLEX QD-REAL) and vice versa.
o Was missing TWO-ARG-/ for (QD-REAL QD-COMPLEX)

qd-methods.lisp:
o Moved some methods from here to qd-methods.lisp
o Reimplement QFLOAT (RATIO QD-REAL) to use internal functions instead
  of calling TWO-ARG-/ and QFLOAT
o QABS (QD-COMPLEX) was returning the wrong thing.

Revision 1.24 - (view) (annotate) - [select for diffs]
Wed Aug 22 15:27:20 2007 UTC (6 years, 8 months ago) by toy
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23
Fix build problem where the / method is not yet defined to be able to
compute #.(/ 1 (sqrt #q2.0q0)).

Revision 1.23 - (view) (annotate) - [select for diffs]
Sat Jun 2 03:30:44 2007 UTC (6 years, 10 months ago) by toy
Branch: MAIN
Changes since 1.22: +4 -6 lines
Diff to previous 1.22
o Export a few more symbols from QDI
o Remove QDI package qualifiers from exported functions.

Revision 1.22 - (view) (annotate) - [select for diffs]
Wed May 30 15:49:42 2007 UTC (6 years, 10 months ago) by toy
Branch: MAIN
Changes since 1.21: +14 -7 lines
Diff to previous 1.21
o Some Lisps cannot compute (asinh most-positive-double-float) without
  signalling an overflow.  Use a different implementation.
o Remove call to ext:with-float-traps-masked, which is CMUCL-specific,
  and not needed.

Revision 1.21 - (view) (annotate) - [select for diffs]
Fri May 25 20:28:07 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.20: +9 -45 lines
Diff to previous 1.20
o Remove unnecessary calls to FLOAT and FLOAT-SIGN---the args are
  known to be qd-real or qd-complex already.
o In QD-COMPLEX-ATANH, revert the code that handles real args on the
  branch cuts.  This isn't needed anymore because the code was correct
  for z > 1 and calling qd-complex-atanh with (complex z -0) produces
  the correct branch.

Revision 1.20 - (view) (annotate) - [select for diffs]
Fri May 25 19:18:54 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.19: +8 -21 lines
Diff to previous 1.19
o Fix QD-COMPLEX-ASIN again:
  - The previous fix for asin(-2) being wrong actually broke the case
    for asin(2).  Revert that.
  - The issue was that in our explicit handling of the atan(y/0) case
    we didn't take into account the sign y and 0.  Fix that.

Revision 1.19 - (view) (annotate) - [select for diffs]
Fri May 25 13:11:39 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.18: +13 -68 lines
Diff to previous 1.18
Add a few comments, remove unused code.

Revision 1.18 - (view) (annotate) - [select for diffs]
Thu May 24 19:30:52 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.17: +3 -0 lines
Diff to previous 1.17
Add missing methods for expt.

Revision 1.17 - (view) (annotate) - [select for diffs]
Thu May 24 19:08:23 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.16: +1 -1 lines
Diff to previous 1.16
Remove extra paren.

Revision 1.16 - (view) (annotate) - [select for diffs]
Thu May 24 18:44:30 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15
Fix typo in comments.

Revision 1.15 - (view) (annotate) - [select for diffs]
Thu May 24 17:07:10 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.14: +62 -55 lines
Diff to previous 1.14
To get the branch cuts right for atanh, we have to get multiplications
by signed zero right.  Hence add careful-mul to make sure the result
has the correct sign.  Only needed in two places here.

Revision 1.14 - (view) (annotate) - [select for diffs]
Thu May 24 03:20:39 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.13: +48 -4 lines
Diff to previous 1.13
o In QD-COMPLEX-ATANH, REALP doesn't work on quad-doubles.  Should we
  define a new REALP that does?
o QD-COMPLEX-ATANH has problems if the imaginary part is pi/2 + 2*k*pi
  because tan(pi/2) ends up signaling a division-by-zero error.
  Handle this case explicitly by assuming any errors from computing
  tan are because we're dividing-by-zero.
o Declaration for QD-COMPLEX-TAN arg was wrong.
o For QATAN with a complex-valued first arg, check to make sure the
  second arg is not given.  That's not allowed by CL.

Revision 1.13 - (view) (annotate) - [select for diffs]
Wed May 23 18:08:11 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.12: +4 -0 lines
Diff to previous 1.12
o QZEROP needs to work with qd-complex.
o QZEROP needs to work with CL number type.
o Add support for FROUND and SIGNUM.

Revision 1.12 - (view) (annotate) - [select for diffs]
Wed May 23 17:44:28 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.11: +2 -0 lines
Diff to previous 1.11
Add support for CIS and PHASE.

Revision 1.11 - (view) (annotate) - [select for diffs]
Wed May 23 17:20:44 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.10: +142 -59 lines
Diff to previous 1.10
QD-COMPLEX-ATANH and QD-COMPLEX_ASIN were not computing the right
values for arguments on the branch cut.

Revision 1.10 - (view) (annotate) - [select for diffs]
Wed May 23 04:40:19 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.9: +4 -0 lines
Diff to previous 1.9
Add unary-minus for qd-complex.

Revision 1.9 - (view) (annotate) - [select for diffs]
Wed May 23 02:34:48 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.8: +31 -0 lines
Diff to previous 1.8
o TWO-ARG-* was missing some methods for multiplying a qd-complex and a
  qd-real
o Add support for qd-complex for qexp and qexpt.

Revision 1.8 - (view) (annotate) - [select for diffs]
Wed May 23 02:11:03 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.7: +6 -2 lines
Diff to previous 1.7
o Fix typo in qcosh
o Add method for qatan for a qd-complex arg.

Revision 1.7 - (view) (annotate) - [select for diffs]
Tue May 22 20:32:37 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.6: +14 -0 lines
Diff to previous 1.6
o Make TWO-ARG-* with a COMPLEX arg work with or without
  double-double-floats.
o Add SQRT for qd-complex types.

Revision 1.6 - (view) (annotate) - [select for diffs]
Tue May 22 18:42:19 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.5: +30 -0 lines
Diff to previous 1.5
Add support for sin, cos, tan, sinh, cosh, tanh for qd-complex args.

Revision 1.5 - (view) (annotate) - [select for diffs]
Tue May 22 16:38:29 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.4: +12 -2 lines
Diff to previous 1.4
o Add support for asin, acos, acosh, atanh outside the primary
  real-valued domain.
o Add support for asin, acos, acosh, atanh for complex args.

Revision 1.4 - (view) (annotate) - [select for diffs]
Tue May 22 16:18:12 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.3: +4 -0 lines
Diff to previous 1.3
Add more missing methods to handle qd-complex and some CMUCL-specific
double-double-float's.

Revision 1.3 - (view) (annotate) - [select for diffs]
Tue May 22 02:35:23 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.2: +84 -2 lines
Diff to previous 1.2
Add methods for two-arg-<foo> for qd-complex numbers.  Still needs work.

Revision 1.2 - (view) (annotate) - [select for diffs]
Mon May 21 21:22:41 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Changes since 1.1: +44 -40 lines
Diff to previous 1.1
o Add two-arg-* for qd-complex args.  (Still needs work!)
o Remove debugging prints.
o Cleanup other functions so they at least run and appear to be
  correct for the few tests done.

Revision 1.1 - (view) (annotate) - [select for diffs]
Mon May 21 19:16:08 2007 UTC (6 years, 11 months ago) by toy
Branch: MAIN
Initial version.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.5