I have a simple function f(x)=(2x+1)*2^y . Is there a way to rewrite it so that x and y are always even or always odd but never even and odd?
F.e. x is not allowed to be odd if y is even and x is not allowed to be even if y is odd. But if y is even and x is even than everything is cool, same when y is odd and x is odd.
Like, I want all numbers 2x2y and (2x+1)(2y+1) but in one function.
Caleb Anderson
y=2u
Luis Jenkins
so what you are trying to figure out if y is even to x or odd? right? my english is not the best
Jackson Foster
I need more context because your question makes no sense.
What do you mean by "not allow"? What do you want your function to output when one is odd and the other is even?
Liam Price
That's a strange way to formulate your need to get a cock up your ass. Have you considered psychotherapy ?
Connor Campbell
>f(x)=(2x+1)*2^y
Shouldn't it be [math]f(x,y) = (2x + 1)\cdot 2^{y}[/math]? It looks like the function depends on both x and y here.
Easton Ortiz
yeah looks a little weird when i play with it. tell me if i did something wrong. not OP
Isaiah Murphy
That's not how exponents work
Evan Davis
how would it work then?
Wyatt King
If you want both x and y to always be even substitute them for 2x and 2y respectively If you want them to always be odd substitute them for 2x+1 and 2y+1 respectively