HP Forums

Full Version: Heaviside, Dirac, Ramp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi everybody,
in CAS they are well supported both Heaviside() and Dirac() functions.
Maybe it would be useful (for students) to include also Ramp(), for completeness, isn't it?
( In this link) their theory, as we know...)
Almost poll: Do you agree? Smile

Now, actually we have only Heaviside() and Dirac() in Catalog (but not Ramp()) and they are also in the Help, so:
diff(Heaviside(x)) -> Dirac(x)
• ∫Dirac(x)dx returns ∫Dirac(x)dx
• ∫Heaviside(x)dx returns {x if x>0, 0
\[
\text{Ramp }
\left\{\begin{matrix}
x \text{, if } x>0 \\
0
\end{matrix}\right.
\]

If there would be a "Ramp" function, we could have:
• ∫Dirac(x)dx should return a (new defined in CAS) Ramp(x) function...
• diff(Ramp(x)) should also return Heaviside(x)
Where Ramp(x) could be ({x if z>0, 0) or other definition [theoretically something like peacewise(x>0,0,x) ]
Obviously with warning for the definition in 0 and so on...

Only me two ..."Ramp cents" ¢ :-)

Salvo
Reference URL's