Load new definition of derivative of abs(x)
fricas
)lib FSPECX
FunctionalSpecialFunction is now explicitly exposed in frame initial
FunctionalSpecialFunction will be automatically loaded when needed
from /var/aw/var/LatexWiki/FSPECX.NRLIB/FSPECX
fricas
signum(x)==eval(differentiate(abs(%x),%x),%x=x)
Type: Void
fricas
signum(x)
fricas
Compiling function signum with type Variable(x) -> Expression(
Integer)
Type: Expression(Integer)
fricas
diracDelta(x)==eval(differentiate(signum(%x),%x)/2,%x=x)
Type: Void
fricas
diracDelta(x)
fricas
Compiling function signum with type Variable( ) -> Expression(
Integer)
fricas
Compiling function diracDelta with type Variable(x) -> Expression(
Integer)
Type: Expression(Integer)
fricas
realDirac:=(eval(diracDelta(z),z=x+%i*y)+eval(diracDelta(z),z=x-%i*y))/2
fricas
Compiling function diracDelta with type Variable(z) -> Expression(
Integer)
Type: Expression(Complex(Integer))
fricas
eval(realDirac,[x=0.1,y=1.0])::Float
Type: Float
Properties
fricas
signum(x^2)
fricas
Compiling function signum with type Polynomial(Integer) ->
Expression(Integer)
Type: Expression(Integer)
fricas
diracDelta(x)^2
Type: Expression(Integer)
fricas
diracDelta(x^2)
fricas
Compiling function diracDelta with type Polynomial(Integer) ->
Expression(Integer)
Type: Expression(Integer)
fricas
signum(x)*diracDelta(x)
Type: Expression(Integer)
fricas
integrate(abs(x),x)
Type: Union(Expression(Integer),...)
fricas
-- expected x*abs(x)/2
integrate(signum(x),x)
Type: Union(Expression(Integer),...)
fricas
-- expected abs(x)
integrate(diracDelta(x),x)
Type: Union(Expression(Integer),...)
fricas
-- expected signum(x)/2
--
integrate(diracDelta(x),x=minusInfinity..plusInfinity,"noPole")
Type: Union(fail: failed,...)
fricas
integrate(x*diracDelta(x),x=minusInfinity..plusInfinity,"noPole")
Type: Union(fail: failed,...)
fricas
)lib GDRAW
GnuDraw is now explicitly exposed in frame initial
GnuDraw will be automatically loaded when needed from
/var/aw/var/LatexWiki/GDRAW.NRLIB/GDRAW
t1(x:Float):Float == real eval(realDirac,y=1.0)
Function declaration t1 : Float -> Float has been added to
workspace.
Type: Void
fricas
t1(10.0)
fricas
Compiling function t1 with type Float -> Float
Conversion failed in the compiled user function t1 .
Cannot convert from type Expression(Float) to Float for value
+--------+
| 2
\|x + 1.0
-----------------
4 2
x + 2.0 x + 1.0
gnuDraw(t1, -10..10,"SandBoxDiracDelta1.dat")
There are 1 exposed and 0 unexposed library operations named gnuDraw
having 3 argument(s) but none was determined to be applicable.
Use HyperDoc Browse, or issue
)display op gnuDraw
to learn more about the available operations. Perhaps
package-calling the operation or using coercions on the arguments
will allow you to apply the operation.
Cannot find a definition or applicable library operation named
gnuDraw with argument type(s)
FunctionCalled(t1)
Segment(Integer)
String
Perhaps you should use "@" to indicate the required return type,
or "$" to specify which version of the function you need.
