General function in 2 variables

Emilijo
Messages
35
Reaction score
0

Homework Statement


I need to get a general function in 2 variables f(m,n).
The task is to find a general function f(m,n) with these terms:
The function has to be periodic.
The function has to include those blue and red points in each example.
The value of the function has to be f(m,n) =1 ONLY in blue points, and the value of the function has to be f(m,n)=0 ONLY in red points.

The look of the function isn't important as long as it complies with previous terms.

Homework Equations


You can see a graphicon with charasteristic points:
In the first example m=2 (m is period).
attachment.php?attachmentid=45533&stc=1&d=1332771899.png

In the next example m=3:
attachment.php?attachmentid=45534&stc=1&d=1332771923.png

For m=4:
attachment.php?attachmentid=45535&stc=1&d=1332771923.png

and so on.

The Attempt at a Solution


In first example (for m=2) I used functions: sin and absolute, but for all other m,
it is not possible with only those functions, I also tried use the Fourier series but I don't have so
much knowledge in mathematics to built a such function.
Does somebody know how to do it?
 

Attachments

  • m2.png
    m2.png
    12.8 KB · Views: 589
  • m3.png
    m3.png
    12.9 KB · Views: 552
  • m4.png
    m4.png
    12.6 KB · Views: 619
Last edited:
Physics news on Phys.org
Emilijo said:

Homework Statement


I need to get a general function in 2 variables f(m,n).
The task is to find a general function f(m,n) with these terms:
The function has to be periodic.
The function has to include those blue and red points in each example.
The value of the function has to be f(m,n) =1 ONLY in blue points, and the value of the function has to be f(m,n)=0 ONLY in red points.

The look of the function isn't important as long as it complies with previous terms.



Homework Equations


You can see a graphicon with charasteristic points:
In the first example m=2 (m is period).
attachment.php?attachmentid=45533&stc=1&d=1332771899.png

In the next example m=3:
attachment.php?attachmentid=45534&stc=1&d=1332771923.png

For m=4:
attachment.php?attachmentid=45535&stc=1&d=1332771923.png

and so on.




The Attempt at a Solution


What have you done so far? You must show some work and exhibit some effort before receiving help in this Forum.

RGV
 
Ray Vickson said:
What have you done so far? You must show some work and exhibit some effort before receiving help in this Forum.

RGV

I tried and wrote about it above in previous post.
 
Emilijo said:
I tried and wrote about it above in previous post.

Your previous post did not show any work; it just said you had tried some things, but did not show exactly what you did.

RGV
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top