From: Thomas D. D. <to...@wa...> - 2024-11-28 12:11:06
|
Maxima branch_5_47_base_1500_g32a79c344 https://maxima.sourceforge.io using Lisp GNU Common Lisp (GCL) GCL 2.6.14 git tag Version_2_6_14 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) ??hstep -- Function: hstep (<x>) The Heaviside unit step function, equal to 0 if <x> is negative, equal to 1 if <x> is positive and equal to 1/2 if <x> is equal to zero. If you want a unit step function that takes on the value of 0 at <x> equal to zero, use 'unit_step'. (%o1) true (%i2) hstep(x); file_search1: pwilt not found in file_search_maxima,file_search_lisp. -- an error. To debug this try: debugmode(true); (%i3) hstep(x):= if x<0 then 0 elseif x<1 then 1 else 0; define: warning: redefining the built-in function hstep (%o3) hstep(x) := if x < 0 then 0 elseif x < 1 then 1 else 0 (%i4) Tom Dean |