Question (signum function in maple)

  • Context: Maple 
  • Thread starter Thread starter alejandrito29
  • Start date Start date
  • Tags Tags
    Function Maple
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 5K views
alejandrito29
Messages
148
Reaction score
0
in maple signum(x) is |x|/x

the derivate is d/dx {|x|/x} =signum(1,x)

what is:

signum(1,x,0)
signum(0,x,0)
?
 
Physics news on Phys.org
alejandrito29 said:
in maple signum(x) is |x|/x

That is incorrect for complex values x. Better is x/|x| which holds for all complex x except zero.


the derivate is d/dx {|x|/x} =signum(1,x)

what is:

signum(1,x,0)
signum(0,x,0)
?

In Maple, type ?signum to see the help page.

signum(1,x) is the derivative of signum, so it is zero for nonzero real x and undefined otherwise. The optional third argument tells Maple what you want to do with signum(0), some conventions say it should be 0, others that it should be 1, so you could say signum(0,x,0) and signum(0,x,1) for those two signum functions.