Can Trig Functions Satisfy These Conditions for Even and Odd Numbers?

  • Thread starter mohamadh95
  • Start date
  • Tags
    Function
In summary, the conversation discusses the existence of two functions, h(x) and g(x), that satisfy certain conditions based on the parity of the input x. The desired domain is mentioned and the possibility of using trigonometric functions in the real numbers as potential solutions is suggested.
  • #1
mohamadh95
45
0
is there any function h(x) that satisfies these conditions:
h(x)=0 when x is even
h(x)=1 when x is odd
and is there there any function g(x) such that:
g(x)=0 when x is odd
g(x)=1 when x is even
thank you.
 
Physics news on Phys.org
  • #2
What's the desired domain? If it's only [itex]\mathbb{Z}[/itex] think about the expression [itex](-1)^x[/itex]!
 
  • #3
vanhees71 said:
What's the desired domain? If it's only [itex]\mathbb{Z}[/itex] think about the expression [itex](-1)^x[/itex]!
Thank you for your quick reply g(x) can be (1+(-1)^x)/2 and h(x) (1-(-1)^x)/2
 
  • #4
The trig functions are quite nice if the domain is ℝ. For example, look at cos2(pi*x) or cos(2*pi*x).
 

What is a function?

A function is a set of mathematical operations or rules that take in one or more inputs and produce an output.

Why do we search for functions?

We search for functions to understand and explain relationships between different variables or quantities.

How do we search for a function?

We can search for a function by analyzing data, conducting experiments, and using mathematical tools like graphs and equations.

What is the importance of finding a function?

Finding a function allows us to make predictions and draw conclusions about real-world phenomena, as well as create models that can be used to solve problems and make decisions.

Can a function have multiple inputs or outputs?

Yes, a function can have multiple inputs or outputs, as long as each input corresponds to exactly one output. This is known as a many-to-one or one-to-many relationship.

Similar threads

  • Calculus and Beyond Homework Help
Replies
7
Views
948
  • Calculus and Beyond Homework Help
Replies
8
Views
467
  • Calculus and Beyond Homework Help
Replies
12
Views
258
  • Calculus and Beyond Homework Help
Replies
1
Views
275
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
278
  • Calculus and Beyond Homework Help
Replies
2
Views
673
  • Calculus and Beyond Homework Help
Replies
5
Views
218
  • Calculus and Beyond Homework Help
Replies
16
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
265
Back
Top