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

Commit 15df4b5

Browse files
committed
using unit_step for heaviside
1 parent c5af195 commit 15df4b5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/sage/functions/generalized.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,14 @@ def __init__(self):
252252
sage: h(x) = heaviside(x)
253253
sage: h(pi).numerical_approx()
254254
1.00000000000000
255+
256+
TESTS::
257+
258+
sage: integrate(heaviside(x),x,-1,1,algorithm='maxima')
259+
1
255260
"""
256261
GinacFunction.__init__(self, "heaviside", latex_name="H",
257-
conversions=dict(maxima='hstep',
262+
conversions=dict(maxima='unit_step',
258263
mathematica='HeavisideTheta',
259264
sympy='Heaviside',
260265
giac='Heaviside'))

0 commit comments

Comments
 (0)