Gmail Calendar Documents Web Reader more »
Recently Visited Groups | Help | Sign in
Google Groups Home
building signum-function out of elementary functions
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
wso  
View profile  
 More options Sep 30 1999, 11:00 am
Newsgroups: sci.math
From: w...@festo.com
Date: 1999/09/30
Subject: building signum-function out of elementary functions
Hello Maths cracks,

little question turned out to be complicated:

Is it possible to construct a function out of the elementary (+,-,*,/),
the trigonometrical or exponential functions? Or more general, out of
basic functions?

I failed on that, I doubt it's possible at all.
Greetings Wolfgang Sock

Sent via Deja.com http://www.deja.com/
Before you buy.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andy Spragg  
View profile  
 More options Sep 30 1999, 11:00 am
Newsgroups: sci.math
From: spa...@globalnet.co.uk (Andy Spragg)
Date: 1999/09/30
Subject: Re: building signum-function out of elementary functions
This came up a little while ago. Elegant if not quite legal in your
terms is:

sgn(x) := (x >= 0) - (x <= 0)

provided you are prepared to admit 1 for true and 0 for false:

x > 0 gives 1-0 = +1
x < 0 gives 0-1 = -1
x = 0 gives 1-1 = 0

Sort of bra- and -kety...

HTH,

Andy


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oleg V. Poliannikov  
View profile  
 More options Sep 30 1999, 11:00 am
Newsgroups: sci.math
From: "Oleg V. Poliannikov" <ovpol...@eos.ncsu.edu>
Date: 1999/09/30
Subject: Re: building signum-function out of elementary functions
| little question turned out to be complicated:
|
| Is it possible to construct a function out of the elementary (+,-,*,/),
| the trigonometrical or exponential functions? Or more general, out of
| basic functions?
|
| I failed on that, I doubt it's possible at all.

Well, even if you have failed then it's still possible. :))

Hint: The characteristic function of a positive halfline is

f(x)=(|x|+x)/2x = |if you will | = ((sqrt(x^2)+x)/2x).

Oleg*


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kyle R. Hofmann  
View profile  
 More options Oct 1 1999, 11:00 am
Newsgroups: sci.math
From: khofm...@ucsd.edu (Kyle R. Hofmann)
Date: 1999/10/01
Subject: Re: building signum-function out of elementary functions

On Thu, 30 Sep 1999 12:15:40 GMT, w...@festo.com wrote:
>Is it possible to construct a function out of the elementary (+,-,*,/),
>the trigonometrical or exponential functions? Or more general, out of
>basic functions?

>I failed on that, I doubt it's possible at all.

The closest I can think of is signum(x) = x/(sqrt(x^2)), which is correct
except for x=0, where it obviously doesn't work.

--
Kyle R. Hofmann <khofm...@ucsd.edu>


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
woalso  
View profile  
 More options Oct 4 1999, 11:00 am
Newsgroups: sci.math
From: woa...@my-deja.com
Date: 1999/10/04
Subject: Re: building signum-function out of elementary functions
In article <7t06ah$s9...@uni00nw.unity.ncsu.edu>,
  "Oleg V. Poliannikov" <ovpol...@eos.ncsu.edu> wrote:

> | little question turned out to be complicated:
> |
> | Is it possible to construct a function out of the elementary
(+,-,*,/),
> | the trigonometrical or exponential functions? Or more general, out
of
> | basic functions?
> |
> | I failed on that, I doubt it's possible at all.

> Well, even if you have failed then it's still possible. :))

Hello Oleg,

there you got me! It's amazing seeing the different solutions on a point
believing there is no solution. :-0

> Hint: The characteristic function of a positive halfline is

> f(x)=(|x|+x)/2x = |if you will | = ((sqrt(x^2)+x)/2x).

> Oleg*

Nice idea, but it does not really give the function I'm looking for:

The signum-function I'm searching for goes like:
sgn(x) = 1 for x>0
sgn(x) = -1 for x < 0
sgn(x) = 0 for x=0

Your function gives:
x>0 f(x)=1, ok.
x=0 f(x)=?, depends on implementation because of division by 0 problem.
normally it's "error because of devison by Null". Rule of "De Hospital"
gives 1, am I right?
x<0 f(x)= 0 / -2|x| = 0  and not -1.

But it should be possible to modify your function.

What about: g(x)=(|x|+x)/2x + (|x|-x)/2x gives
x>0 g(x)= 1 + 0 = 1 => ok.
x<0 g(x)= 0 + (-1) = -1 => ok.
problem remaining is x=0.

Greetings
Wolfgang

Sent via Deja.com http://www.deja.com/
Before you buy.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
wso  
View profile  
 More options Oct 4 1999, 11:00 am
Newsgroups: sci.math
From: w...@festo.com
Date: 1999/10/04
Subject: Re: building signum-function out of elementary functions
Thank you all for your ideas.

As I told Oleg, it's amazing seeing solutions at a point oneself
believes there are no solutions.

One other idea which was directly mailed to is

> What if you took an n-th root of your number, for n odd and very very
> large, and took the real root of all the possible nth roots?

> 10^(1/1000000001) is very very close to 1

> -10^(1/1000000001) is very very close to -1

> Yes I do understand that it is not exact. ;)

By using the integer function int(x^1/10000001) that would give correct
results, even for x=0. But unfortunately, normally the n-th root with
n=big brings problems, especially for x<0 even when n is odd.

Greetings
Wolfgang

Sent via Deja.com http://www.deja.com/
Before you buy.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google