1. 15 Aug, 2017 1 commit
    • Francesco Montanari's avatar
      Add parallax distance and comoving volume · 045c8d37
      Francesco Montanari authored
      * cosmo.el (cosmo-asinh): Inverse hyperbolic sine.
      * cosmo.el (cosmo-get-parallax-distance, cosmo-parallax-distance):
        Parallax distance.
      * cosmo.el (cosmo--get-comoving-volume-nonflat,
        cosmo-get-comoving-volume): Comoving volume. Still need to add
        interactive command and tests.
  2. 05 Aug, 2017 1 commit
  3. 30 Jul, 2017 2 commits
    • Francesco Montanari's avatar
      Fix doc string · fe89deee
      Francesco Montanari authored
    • Francesco Montanari's avatar
      Fix Simpson's rule · 4b8d3549
      Francesco Montanari authored
      * cosmo.el (cosmo--trapzd, cosmo-qsimp): Check Simpson's rule for
        convergence and stop if the desired accuracy is reached. The
        previous algorithm did't perform any convergence check. At low
        redshift z~1 numerical integrals are now about one order of
        magnitude faster, at large redshift z~1 one order of magnitude
        slower (but it is guaranteed to reach the desired accuracy).
      * cosmo.el (cosmo, cosmo-int-prec, cosmo-int-maxsteps): Define
        customization group to allow users to set numerical integrals
        precision variable through the `customize' command.
      * README.org: Explain how to customize variables.
  4. 29 Jul, 2017 1 commit
    • Francesco Montanari's avatar
      Check convergence for Simpson's rule (commented code) · 3da5fec4
      Francesco Montanari authored
      * cosmo.el (cosmo-trapzd, cosmo-qsimp): Adapt Simpson's rule to
        automatically check convergence. At similar accuracy, the code is
        about one order of magnitude slower than the previous
        implementation. Try to improve efficiency by replacing loops with
        more functional solutions. For the time being the newly added code
        is commented out, the old implementation is used.
  5. 25 Jul, 2017 1 commit
  6. 24 Jul, 2017 1 commit
  7. 23 Jul, 2017 2 commits
  8. 22 Jul, 2017 7 commits
  9. 20 Jul, 2017 1 commit
  10. 18 Jul, 2017 1 commit
    • Francesco Montanari's avatar
      Add command cosmo-pedia · c45277f3
      Francesco Montanari authored
      * cosmo.el (cosmo-pedia): Command to display fast reference to basic
        cosmological definitions. So far the relation among the main
        cosmological distances is defined.
  11. 10 Jul, 2017 1 commit
    • Francesco Montanari's avatar
      Add further distances · 4e0bfcc9
      Francesco Montanari authored
      * cosmo.el (cosmo-get-angular-diameter-distance,
        cosmo-angular-diameter-distance, cosmo-get-luminosity-distance,
        cosmo-get-luminosity-distance, cosmo-luminosity-distance,
        cosmo-get-hubble-time, cosmo-hubble-time): Add further distances
        from Hogg. The respective tests are not implemented yet.
  12. 04 Jun, 2017 2 commits
  13. 03 Jun, 2017 5 commits
  14. 25 May, 2017 1 commit
  15. 21 May, 2017 3 commits
    • Francesco Montanari's avatar
      Simplify summary header · 3d53fc09
      Francesco Montanari authored
      * cosmo.el (cosmo--write-calc-header): Suggest only how to quit in the
        header help. Before also the usage of SPC and DEL where
        suggested. However:
        - For advanced Emacs users the help is not necessary at all.
        - For beginners the DEL is misleading, since it refers to back-space
          (not to delete). However, using a different name would not be
          consistent with Emacs notation. Since users can scroll down also
          using arrows, the simpler more consistent solution is not to
          suggest DEL and, consequently, not to suggest SPC as well.
    • Francesco Montanari's avatar
      Add doc strings; fix minor points · a6debbbd
      Francesco Montanari authored
      * cosmo.el: Add `Bugs` and `Todo` sections.
      * cosmo.el: Quote functions as `#'` instead of `'`.
    • Francesco Montanari's avatar
      Use built-in function to open temporary buffer · 5f10b974
      Francesco Montanari authored
      * cosmo.el (cosmo-calculator): Use `with-output-to-temp-buffer` to
        open the temporary buffer. This solves previous problems related to
        dealing with an already existing buffer with the same name. This
        also shortens the function, while improving it.
  16. 20 May, 2017 3 commits
    • Francesco Montanari's avatar
      Open cosmo-calculator as special-mode · f9574bb0
      Francesco Montanari authored
      * cosmo.el (cosmo-calculator): Open the cosmological calculator
        summary table as a special-mode. Allow overwriting if buffer exists
        otherwise it won't update unless it is killed (`q` is not enough).
      * cosmo.el (cosmo--write-calc-header): Insert an help header with the
        basics special-mode buffer commands.
    • Francesco Montanari's avatar
      Add unit test · d9d19e5a
      Francesco Montanari authored
      * cosmo.el (cosmo-and-reduce): Reduce a sequence by applying the AND
        special form to each element pair.
      * cosmo.el (cosmo-test-string-number-p,
        cosmo-test-string-notnumber-p); Test the `cosmo--string-number-p`
    • Francesco Montanari's avatar
      Check weather input parameter is a number · fffc843e
      Francesco Montanari authored
      * cosmo.el (cosmo--string-number-p): Check if a string represents a
      * cosmo.el (cosmo--read-param): Check if a input parameter is a
  17. 18 May, 2017 7 commits
    • Francesco Montanari's avatar
      Fix comments and docstrings · 80a1ddcf
      Francesco Montanari authored
    • Francesco Montanari's avatar
      Use sharp quote instead of quote for functions · e41cbc06
      Francesco Montanari authored
      * cosmo.el (cosmo--get-los-comoving-distance): Use sharp quote `#'`
        when passing function to trapezoidal rule, instead of simple quote
        `'`. This allows the byte-compiler to warn if the function is
    • Francesco Montanari's avatar
      Re-organize sections · 0eae6392
      Francesco Montanari authored
    • Francesco Montanari's avatar
      Add transverse comoving distance; add help to header · b2cb0845
      Francesco Montanari authored
      * cosmo.el (cosmo--get-transverse-comoving-distance,
        cosmo-transverse-comoving-distance): Add transverse comoving
      * cosmo.el (cosmo--write-calc-header): Add minimal help to
        header. This help may be quite useless and it may be better to
        remove it, or to refer to some help page.
    • Francesco Montanari's avatar
    • Francesco Montanari's avatar
      Add Hubble distance and LOS comoving distance; fix bug · 94b78b3a
      Francesco Montanari authored
      * cosmo.el (cosmo--get-hubble-distance): Add computation of Hubble
        distance (1/H0 in Mpc).
      * cosmo.el (cosmo--get-los-comoving-distance,
        cosmo-los-comoving-distance): Add computation of line-of-sight
        comoving distance and respective interactive function.
      * cosmo.el (cosmo--check-param): Fix condition to allow parameters
        equal to zero.
    • Francesco Montanari's avatar
      Add curvature and radiation parameters; revert to other-window · b4142dba
      Francesco Montanari authored
      * cosmo.el (cosmo--params, cosmo--get-ocurvature, cosmo--write-calc):
        Add curvature and radiation parameters. Curvature is automatically
        computed as derived parameter, given Friedmann's equations.
      * cosmo.el (cosmo--efunc, cosmo--get-hubble, cosmo-hubble): Introduce
        Hoggs E(z) function, taking into account also the newly introduced
      * cosmo.el (cosmo-calculator): Instead of opening a special-mode
        buffer, open a normal buffer. The special mode buffer was
        problematic because if cosmological parameter were updated while the
        special buffer was already open, it would not update. The user would
        have need to kill it and call again `cosmo-calculator`.