Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: √ ∞ ≠ ≤ ≥ ≈ ⇒ ∈ Δ θ ∴ ∑ ∫ π -

Login

Username

Password

Not registered yet?

#1 2005-12-29 05:47:41

krassi_holmz
Real Member

Offline

Interesting suggestions about floor[x]

I found that

, x !∈ Z.
!?


IPBLE:  Increasing Performance By Lowering Expectations.
 

#2 2005-12-29 05:51:23

krassi_holmz
Real Member

Offline

Re: Interesting suggestions about floor[x]

I'll try to find function for all x.
Can someone help me?


IPBLE:  Increasing Performance By Lowering Expectations.
 

#3 2005-12-29 06:08:29

krassi_holmz
Real Member

Offline

Re: Interesting suggestions about floor[x]

Here's better function:

, x !∈ N

Last edited by krassi_holmz (2005-12-29 06:11:37)


IPBLE:  Increasing Performance By Lowering Expectations.
 

#4 2005-12-29 06:31:02

God
Full Member

Offline

Re: Interesting suggestions about floor[x]

cool... how did you come up with that?

 

#5 2005-12-29 06:38:17

krassi_holmz
Real Member

Offline

Re: Interesting suggestions about floor[x]

Here is another:

, x !∈ N

Last edited by krassi_holmz (2005-12-29 06:41:38)


IPBLE:  Increasing Performance By Lowering Expectations.
 

#6 2005-12-29 06:50:20

krassi_holmz
Real Member

Offline

Re: Interesting suggestions about floor[x]

How did I Came up with that?
I'll explain.

The function x - floor[x] = {x} is periodic with period 1. (picture 1)
I wanted to represent {x} with trigonometric functions.
First, ArcCos[Sin[x+Pi/2]]= |x| for x ∈ [-Pi,Pi] and this function is peridic with period 2Pi.
Let ArcCos[Sin[x+Pi/2]]=be[x]. (picture 2)
I reduced be[x] to have period 1:
ber[x]=be[Pi x].
Now you can notice that if x ∈(2n,2n+1) ber[x] ≡ {x} and if x∈(2m-1,2m) 1-ber[x]≡{x} ; n,m∈N. This is ecvivalent to:
Now i have to find function g[x]:
{|g[x]-ber[x]|}≡{x}, so
g[x]=
1. 0, if x ∈(2n,2n+1)
2. 1, if x ∈(2m-1,2m)
If I find function that changes its sign in period of 1, I'll be able to reduce it to g[x].
I can take a periodic function, for example sin[x]. (picture 3)
It has period Pi. We need period 1. So we'll use
sinr[x]=sin[Pi x] (picture 4)
The new function has period 1.
Now we construct function that gives us the sign of sinr[x]:
ss[x]=sinr[x]/(|sinr[x]|) (picture 5)
If x∈(2m-1,2m) ss[x]=-1
If x∈(2n,2n+1) ss[x]=1.
Now the only thing we need is a function q(x) for such
q[-1]=1
q[1]=0
This is linear function:
-a+b=1 && a+b=0 => 2a+1=0 => a=-1/2;b=1/2
so
q[x]=-1/2x+1/2
and q[ss[x]]=g[x] and
(|q[ss[x]]-ber[x]|)={x}
and
Floor[x]=x-(|q[ss[x]]|)
And when you simplify and substitute modulus with sqr(x^2) you should get the second example.
The final result depends on what periodic shall we take.

Last edited by krassi_holmz (2005-12-29 07:59:49)


IPBLE:  Increasing Performance By Lowering Expectations.
 

#7 2005-12-29 07:13:49

ryos
Power Member

Offline

Re: Interesting suggestions about floor[x]

Impressive! How about this:

Floor(x) = x - (x % 1)

Where % is the modulus operator.


El que pega primero pega dos veces.
 

#8 2005-12-29 07:36:29

krassi_holmz
Real Member

Offline

Re: Interesting suggestions about floor[x]

Picture 1: x-floor{x}


Uploaded Images
View Image: p1.GIF      

Last edited by krassi_holmz (2005-12-29 07:55:24)


IPBLE:  Increasing Performance By Lowering Expectations.
 

#9 2005-12-29 07:39:18

krassi_holmz
Real Member

Offline

Re: Interesting suggestions about floor[x]

Picture 2: be[x]=ArcCos[Sin[x+Pi/2]]


Uploaded Images
View Image: p2.GIF      

Last edited by krassi_holmz (2005-12-29 07:56:09)


IPBLE:  Increasing Performance By Lowering Expectations.
 

#10 2005-12-29 07:41:19

krassi_holmz
Real Member

Offline

Re: Interesting suggestions about floor[x]

Picture 3: sin[x]


Uploaded Images
View Image: p3.GIF      

Last edited by krassi_holmz (2005-12-29 07:56:40)


IPBLE:  Increasing Performance By Lowering Expectations.
 

#11 2005-12-29 07:45:08

krassi_holmz
Real Member

Offline

Re: Interesting suggestions about floor[x]

Picture 4: sinr(x)=sin(Pi x)


Uploaded Images
View Image: p4.GIF      

Last edited by krassi_holmz (2005-12-29 07:57:38)


IPBLE:  Increasing Performance By Lowering Expectations.
 

#12 2005-12-29 07:46:42

krassi_holmz
Real Member

Offline

Re: Interesting suggestions about floor[x]

Picture 5: ss[x]=sinr[x]/(|sinr[x]|)


Uploaded Images
View Image: p5.GIF      

Last edited by krassi_holmz (2005-12-29 07:58:10)


IPBLE:  Increasing Performance By Lowering Expectations.
 

#13 2005-12-29 07:54:21

krassi_holmz
Real Member

Offline

Re: Interesting suggestions about floor[x]

Picture 6: The function we've iust assembled.


Uploaded Images
View Image: p6.GIF      

Last edited by krassi_holmz (2005-12-29 07:58:47)


IPBLE:  Increasing Performance By Lowering Expectations.
 

#14 2005-12-29 15:26:27

John E. Franklin
Star Member

Offline

Re: Interesting suggestions about floor[x]

Totally rad! You must be breaking new ground.
I'll go over this more closely soon.  This is terrific!
How about an impulse function, a square wave that
occurs only once.  This could be used as a pass filter
to partition out certain parts of a function within a
certain range of x.  So instead of saying y=5 for 10 < x <20,
you could multiply by the square impulse.
Awesome work, krassi!


igloo myrtilles fourmis
 

#15 2005-12-31 10:20:30

God
Full Member

Offline

Re: Interesting suggestions about floor[x]

Awesome work!

About the square impulse, I'm sure it can somehow be derived from the equation of a circle, since you can control the endpoints by controling the center and radius.

If you allow limits, it becomes even easier (but totally useless for most practical cases)
The corresponding function g(x) would be represented in the form:
g(x) = lim(n->oo)[((x-a)/b)^n]*(x)+(x)
for the interval (a, a+b]

Last edited by God (2005-12-31 10:58:09)

 

Board footer

Powered by FluxBB