General function in 2 variables

3 replies · 2K views · last reply
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).
Coordinate plane with x-axis from -4 to 12 and y-axis from -5 to 6. Blue points F, B, D and G lie at height 1, and red points A, C and E lie on the x-axis at 0, 2 and 4.

In the next example m=3:
Coordinate plot on x and y axes from -4 to 12 and -5 to 6, with blue points at height 1 and red points on the x-axis, labelled A through J.

For m=4:
Coordinate plane with x-axis from -4 to 12 and y-axis from -5 to 6; blue points J, I, H, B, C, D, F, G, L lie at height 1 and red points K, A, E lie on the x-axis.

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
  • Coordinate plane with x-axis from -4 to 12 and y-axis from -5 to 6; blue points F, B, D, G at height 1 and red points A, C, E on the x-axis at 0, 2 and 4.
    m2.png
    12.8 KB · Views: 632
  • Coordinate plane with x-axis from -4 to 12 and y-axis from -5 to 6, showing blue points at (-2,1), (-1,1), (1,1), (2,1), (4,1), (5,1) and red points at (-3,0), (0,0), (3,0), (6,0).
    m3.png
    12.9 KB · Views: 602
  • Coordinate plot on x-axis from -4 to 12 and y-axis from -5 to 6 with dashed grid lines; blue points labelled J, I, H, B, C, D, F, G, L lie at height 1, and red points K, A, E lie on the x-axis.
    m4.png
    12.6 KB · Views: 670
Last edited:
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).
Coordinate plane with x-axis from -4 to 12 and y-axis from -5 to 6, showing labelled points A at the origin, C near x=2, E near x=4 on the axis, and B, D, F, G at height 1.

In the next example m=3:
Coordinate plane with dashed grid from x = -4 to 12 and y = -5 to 6, showing labelled points A through J; blue points B, C, E, F, H, I lie at height 1 and red points A, D, G, J lie on the horizontal axis.

For m=4:
Coordinate plane with dashed grid showing labelled points: red points K at about (-4, 0), A at the origin and E near (4, 0) on the x-axis; blue points J, I, H, B, C, D, F, G and L lying along y = 1.

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