Naive sign function for real numbers - challenge

Click For Summary
The discussion centers on finding a sign function for real numbers without using decisional blocks or piecewise functions. Participants explore various mathematical approaches, including using the arctangent function and regularized absolute values, while debating the efficiency and elegance of these methods. The conversation highlights the distinction between mathematical functions and programming constructs, emphasizing that certain operations like truncation can still involve decision-making. There is a focus on the ideological implications of defining functions without relying on traditional decision blocks. Ultimately, the challenge lies in creating a robust sign function that adheres to the specified restrictions.
  • #31
I will use the Lemmings suicide function. Then maybe this thread will truncate.
 
Physics news on Phys.org
  • #32
Given any number x you could guess the sign. You'd be right half the time.
 

Similar threads

Replies
24
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
6K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
4
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K