Ref.
Derivative of abs fricas s1:=D(abs(x),
Type: Expression(Integer)
fricas D(s1,
Type: Expression(Integer)
fricas limit(abs(x)/x,
Type: Union(OrderedCompletion?(Expression(Integer)),
fricas limit(abs(x)/x,
Type: Union(OrderedCompletion?(Expression(Integer)),
An approximation to signum fricas D(tanh(a*x),
Type: Expression(Integer)
fricas limit(%,
Type: Union("failed",
Patterns for derivatives fricas Abs:=operator('Abs)
Type: BasicOperator?
fricas D(abs(x),
Type: Expression(Integer)
fricas signum:=operator('signum)
Type: BasicOperator?
fricas diracDelta:=operator('diracDelta)
Type: BasicOperator?
fricas signum(x)
Type: Expression(Integer)
fricas D(signum(x),
Type: Expression(Integer)
fricas diff1:=rule signum(x) == Abs(x)/x D(Abs(x),
Type: Ruleset(Integer,
fricas diff(x, Type: Void
fricas diff(Abs(x), fricas Compiling function diff with type (Expression(Integer),
Type: Expression(Integer)
fricas diff(Abs(x)/x,
Type: Expression(Integer)
Adding the singular part of the derivative fricas diff(f, Type: Void
fricas diff(abs(x),
Type: Expression(Integer)
fricas diff(%,
Type: Expression(Integer)
fricas signum(x)==abs(x)/x Type: Void
fricas diff(signum(x), fricas Compiling function signum with type Variable(x) -> Expression( Integer)
Type: Expression(Integer)
fricas integrate(signum(x),
Type: Union(Expression(Integer),
Heaviside fricas H(x)==(abs(x)+x)/2/x Type: Void
fricas H(-0.3), fricas Compiling function H with type Float -> Float
Type: Tuple(Float)
fricas diff(H(x), fricas Compiling function H with type Variable(x) -> Expression(Integer)
Type: Expression(Integer)
abs and sqrt fricas -- for x real real:=operator('real)
Type: BasicOperator?
fricas abs(real x)=sqrt(real(x)^2)
Type: Equation(Expression(Integer))
fricas -- OK D(sqrt(x^2),
Type: Expression(Integer)
fricas integrate(%,
Type: Union(Expression(Integer),
fricas -- Wrong integrate(sqrt(x^2),
Type: Union(Expression(Integer),
fricas D(%,
Type: Expression(Integer)
fricas -- Expected x*sqrt(x^2)/2
Type: Expression(Integer)
fricas D(%,
Type: Expression(Integer)
fricas integrate(sqrt(x^2),
Type: Union(f1: OrderedCompletion?(Expression(Integer)),
fricas integrate(x,
Type: Union(f1: OrderedCompletion?(Expression(Integer)),
fricas integrate(abs(x),
Type: Union(fail: failed,
Solving differential equations, e.g. fricas -- differential Operator L(f)==D(f, Type: Void
fricas -- Green function g(x)==abs(x)/2 Type: Void
fricas -- pulse c(x)==H(x+1/2)-H(x-1/2) Type: Void
fricas c(x) fricas Compiling function H with type Polynomial(Fraction(Integer)) -> Expression(Integer) fricas Compiling function c with type Variable(x) -> Expression(Integer)
Type: Expression(Integer)
fricas -- convolution integrand:=c(x-y)*g(y) fricas Compiling function c with type Polynomial(Integer) -> Expression( Integer) fricas Compiling function g with type Variable(y) -> Expression(Integer)
Type: Expression(Integer)
fricas conv:=integrate(integrand,
Type: Union(pole: potentialPole,
fricas conv:=integrate(integrand,
Type: Union(fail: failed,
fricas conv:=integrate(integrand,
Type: Union(Expression(Integer),
fricas -- expected result conv:=1/2*x^2*H(x+1/2)-1/2*x+1/2*x*H(x+1/2)+1/8*H(x+1/2)-1/2*x^2*H(x-1/2)+1/2*x*H(x-1/2)-1/8*H(x-1/2)
Type: Expression(Integer)
fricas -- ramp diff(conv,
Type: Expression(Integer)
fricas test(L conv = c(x)) fricas Compiling function L with type Expression(Integer) -> Expression( Integer)
Type: Boolean
fricas gnuDraw(H(x), fricas Compiling function %R with type DoubleFloat -> DoubleFloat Type: Void
fricas gnuDraw(c(x), fricas Compiling function %S with type DoubleFloat -> DoubleFloat Type: Void
fricas gnuDraw(conv, fricas Compiling function %T with type DoubleFloat -> DoubleFloat Type: Void
|