1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: General function in 2 variables

  1. Mar 26, 2012 #1
    1. The problem statement, all variables and given/known data
    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.

    2. Relevant equations
    You can see a graphicon with charasteristic points:
    In the first example m=2 (m is period).
    In the next example m=3:
    For m=4:
    and so on.

    3. 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 dont have so
    much knowledge in mathematics to built a such function.
    Does somebody know how to do it?

    Attached Files:

    • m2.png
      File size:
      25.3 KB
    • m3.png
      File size:
      23.4 KB
    • m4.png
      File size:
      26.2 KB
    Last edited: Mar 26, 2012
  2. jcsd
  3. Mar 26, 2012 #2

    Ray Vickson

    User Avatar
    Science Advisor
    Homework Helper

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

  4. Mar 27, 2012 #3
    I tried and wrote about it above in previous post.
  5. Mar 27, 2012 #4

    Ray Vickson

    User Avatar
    Science Advisor
    Homework Helper

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

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook