Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
doctest fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Apr 22, 2016
1 parent fab81a4 commit 506248a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/doc/en/constructions/plotting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ You can plot piecewise-defined functions:
sage: f4 = sin(2*x)
sage: f = piecewise([((0,1),f1), ((1,2),f2), ((2,3),f3), ((3,10),f4)])
sage: f.plot(x,0,10)
Graphics object consisting of 1 graphics primitives
Graphics object consisting of 1 graphics primitive

Other function plots can be produced as well:

Expand Down
8 changes: 4 additions & 4 deletions src/sage/modules/vector_double_dense.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -754,10 +754,10 @@ cdef class Vector_double_dense(FreeModuleElement):
sage: v = vector(RDF, range(9))
sage: w = vector(CDF, [k+(9-k)*I for k in range(9)])
sage: v.stats_kurtosis() # rel tol 5e-16
-1.2300000000000002
sage: w.stats_kurtosis() # rel tol 5e-16
-1.2300000000000002
sage: v.stats_kurtosis() # rel tol 5e-15
-1.2300000000000000
sage: w.stats_kurtosis() # rel tol 5e-15
-1.2300000000000000
"""
import scipy.stats
return self._sage_dtype(scipy.stats.kurtosis(self._vector_numpy))
Expand Down

0 comments on commit 506248a

Please sign in to comment.