📜  riemann sum sagemath - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:38.804000             🧑  作者: Mango

代码示例1
sage -t  -force_lib devel/sage/doc/en/constructions/calculus.rst
**********************************************************************
File "/mnt/usb1/scratch/jdemeyer/merger/sage-4.6.2.alpha2/devel/sage-main/doc/en/constructions/calculus.rst", line 204:
    sage: f.trapezoid(4)
Expected:
    Piecewise defined function with 4 parts, [[(0, 1/2), 1/2*x],
    [(1/2, 1), 9/2*x - 2], [(1, 3/2), 1/2*x + 2],
    [(3/2, 2), -7/2*x + 8]]
Got:
    doctest:1: DeprecationWarning: _word_content is deprecated, use riemann_sum instead
    Piecewise defined function with 4 parts, [[(0, 1/2), 1/2*x], [(1/2, 1), 9/2*x - 2], [(1, 3/2), 1/2*x + 2], [(3/2, 2), -7/2*x + 8]]
**********************************************************************