Ticket #8750: trac_8750-solaris.patch

File trac_8750-solaris.patch, 1.4 KB (added by jhpalmieri, 12 years ago)
  • sage/finance/time_series.pyx

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1271998312 25200
    # Node ID 7d86639e8cdda6c8fdd6d2c958fa23d3f8fe16a3
    # Parent  4de2009bcff603953d36b394ed490ce563bd2c25
    trac 8750: noise on solaris
    
    diff -r 4de2009bcff6 -r 7d86639e8cdd sage/finance/time_series.pyx
    a b  
    688688
    689689        Log of 0 gives -inf:
    690690
    691             sage: finance.TimeSeries([1,0,3]).log()
    692             [0.0000, -inf, 1.0986]
     691            sage: finance.TimeSeries([1,0,3]).log()[1]
     692            -inf
    693693        """
    694694        cdef Py_ssize_t i
    695695        cdef TimeSeries t = new_time_series(self._length)
  • sage/stats/hmm/chmm.pyx

    diff -r 4de2009bcff6 -r 7d86639e8cdd sage/stats/hmm/chmm.pyx
    a b  
    12921292            sage: m = hmm.GaussianMixtureHiddenMarkovModel([[.9,.1],[.4,.6]], [[(.4,(0,1)), (.6,(1,0.1))],[(1,(0,1))]], [.7,.3])
    12931293            sage: set_random_seed(0); v = m.sample(10)
    12941294            sage: m.baum_welch(v, fix_emissions=True)
    1295             (-7.5865685899788922, 36)
     1295            (-7.58656858997889..., 36)
    12961296            sage: m.emission_parameters()
    12971297            [0.4*N(0.0,1.0) + 0.6*N(1.0,0.1), 1.0*N(0.0,1.0)]
    12981298        """