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: 592
  • m3.png
    m3.png
    12.9 KB · Views: 557
  • m4.png
    m4.png
    12.6 KB · Views: 625
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
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top