simon-git: spigot (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Mon Mar 23 18:18:18 GMT 2015


TL;DR:
  e08452d Don't print tentative output until it's at least 3 digits certain.
  2da1327 Tweak a paragraph in the new docs section.
  09c42ae Mention tentative output in the man page.
  a7f48a1 Print an error if tentative output is 'on' but can't be enabled.
  15a5525 Handle the special case of exp(0) sensibly.

Repository:     git://git.tartarus.org/simon/spigot.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=spigot.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2015-03-23 18:18:18

commit e08452d8d1b964a49960cecb199da5070e909fc9
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=e08452d8d1b964a49960cecb199da5070e909fc9;hp=f15f8068abe5093320f7ea42ef879a6890f931c8
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Mar 23 18:11:59 2015 +0000

    Don't print tentative output until it's at least 3 digits certain.
    
    This avoids tentative output flickering on and off _all the time_
    during computation of a perfectly sensible irrational number.

 main.cpp |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

commit 2da1327978cc56e4d614cf6754ec1a97d0a73910
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=2da1327978cc56e4d614cf6754ec1a97d0a73910;hp=e08452d8d1b964a49960cecb199da5070e909fc9
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Mar 23 18:12:47 2015 +0000

    Tweak a paragraph in the new docs section.
    
    The numbers quoted had a missing digit in them (they were either side
    of 0.1235, which should have been 0.12345), and while I'm at it, I've
    expanded the wording of the sentence containing those numbers.

 manual.but |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

commit 09c42ae50d3eca252abdf64c094354080c917186
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=09c42ae50d3eca252abdf64c094354080c917186;hp=2da1327978cc56e4d614cf6754ec1a97d0a73910
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Mar 23 18:13:23 2015 +0000

    Mention tentative output in the man page.
    
    I completely forgot, as usual, after carefully updating the main
    manual.

 manpage.but |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

commit a7f48a17d2a2b7dd56971f1a9ee73f69664f9c58
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=a7f48a17d2a2b7dd56971f1a9ee73f69664f9c58;hp=09c42ae50d3eca252abdf64c094354080c917186
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Mar 23 18:13:58 2015 +0000

    Print an error if tentative output is 'on' but can't be enabled.
    
    With tentative output set to auto, failing to retrieve one of the
    terminal control strings we need just causes it to be quietly turned
    off. But if the user specifically says they _definitely_ want it, and
    we don't manage to enable it, we should explain why we can't.
    
    The error isn't fatal; spigot will still continue without tentative
    output after printing it.

 main.cpp |   28 +++++++++++++++++++++++-----
 1 file changed, 23 insertions(+), 5 deletions(-)

commit 15a5525fd8af07fa3b38f9edb5af561edab7be4d
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=15a5525fd8af07fa3b38f9edb5af561edab7be4d;hp=a7f48a17d2a2b7dd56971f1a9ee73f69664f9c58
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Mar 23 18:15:49 2015 +0000

    Handle the special case of exp(0) sensibly.
    
    Prior to this change, an input value of zero was getting all the way
    into the ExpRational class, which would then return all-zero spigot
    matrices forever, which is not a useful behaviour at all.
    
    This didn't cause any obvious problems with computing exp(0) itself,
    but other more complicated expressions would fail, such as 0*exp(0)-k
    for rational k. I initially noticed this bug by means of W(0.1234)
    failing an assertion, which turned out to be because xex_constructor()
    had built an expression of just that form. Added both of those as
    regression tests.

 exp.cpp |    6 ++++++
 test.sh |    2 ++
 2 files changed, 8 insertions(+)



More information about the tartarus-commits mailing list