Maple Question (signum function in maple)

  • Thread starter Thread starter alejandrito29
  • Start date Start date
  • Tags Tags
    Function Maple
Click For Summary
In Maple, the signum function is defined as signum(x) = |x|/x, which is valid for real numbers but not for complex values. For complex numbers, a more accurate representation is x/|x|, applicable except at zero. The derivative of the signum function, expressed as d/dx {|x|/x}, results in signum(1,x), which is zero for nonzero real x and undefined at zero. The function signum(1,x,0) and signum(0,x,0) highlight the optional third argument in Maple, which allows users to specify the value of signum at zero, reflecting different conventions that either assign it a value of 0 or 1. For further details, users can refer to the help page by typing ?signum in Maple.
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.
 

Similar threads

Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K