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.
      045c8d37
  2. 05 Aug, 2017 1 commit
  3. 30 Jul, 2017 2 commits
    • Francesco Montanari's avatar
      Fix doc string · fe89deee
      Francesco Montanari authored
      fe89deee
    • 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.
      4b8d3549
  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.
      3da5fec4
  5. 25 Jul, 2017 1 commit
  6. 24 Jul, 2017 1 commit
  7. 23 Jul, 2017 3 commits
  8. 22 Jul, 2017 9 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.
      c45277f3
  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.
      4e0bfcc9
  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.
      3d53fc09
    • 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 `'`.
      a6debbbd
    • 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.
      5f10b974
  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.
      f9574bb0
    • 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`
        function.
      d9d19e5a
    • 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
        number.
      
      * cosmo.el (cosmo--read-param): Check if a input parameter is a
        number.
      fffc843e
  17. 18 May, 2017 4 commits