# HG changeset patch
# User mabshoff@sage.math.washington.edu
# Date 1215373840 25200
# Node ID 5c69ddf3ac9b9c6f7026cc0171baa9a4ea080988
# Parent 60367437639ac3b7723f1dafbabf492fd9b32a69
Fix some doctest failures due to #3356
diff r 60367437639a r 5c69ddf3ac9b sage/finance/time_series.pyx
a

b

cdef class TimeSeries: 
523  523  sage: v 
524  524  [0.6767, 0.2756, 0.6332, 0.0469, 0.8897 ... 87.6759, 87.6825, 87.4120, 87.6639, 86.3194] 
525  525  sage: v.linear_forecast(F) 
526   86.017728504280015 
 526  86.0177285042... 
527  527  sage: F 
528  528  [1.0148, 0.0029, 0.0105, 0.0067, 0.0232 ... 0.0106, 0.0068, 0.0085, 0.0131, 0.0092] 
529  529  """ 
… 
… 
cdef class TimeSeries: 
1426  1426  sage: set_random_seed(0) 
1427  1427  sage: fbm = finance.fractional_brownian_motion_simulation(0.7,0.1,10^5,1)[0].sums() 
1428  1428  sage: fbm.hurst_exponent() 
1429   0.66787027921443409 
 1429  0.667870279214... 
1430  1430  
1431  1431  Another example with small Hurst exponent (notice how bad the prediction is...): 
1432  1432  sage: fbm = finance.fractional_brownian_motion_simulation(0.2,0.1,10^5,1)[0].sums() 
1433  1433  sage: fbm.hurst_exponent() 
1434   0.30450273560706259 
 1434  0.30450273560706... 
1435  1435  
1436  1436  The above example illustrate that this is not a very good 
1437  1437  estimate of the Hurst exponent. 
diff r 60367437639a r 5c69ddf3ac9b sage/matrix/matrix_space.py
a

b

class MatrixSpace_generic(parent_gens.Pa 
651  651  both) are zero, then the single element of the space is returned. 
652  652  
653  653  sage: list( MatrixSpace(GF(2), 2, 0) ) 
654   [[] 
655   []] 
 654  [[]] 
656  655  sage: list( MatrixSpace(GF(2), 0, 2) ) 
657  656  [[]] 
658  657  sage: list( MatrixSpace(GF(2), 0, 0) ) 