Answer the question
In order to leave comments, you need to log in
Is there such a dependence on 2 arguments?
There is y, the value of which must depend on two arguments x and z
x - any number
z - a number either negative or positive
If z>0 then y is positive
If z<0 then the sign of y is determined by the sign of x.
Answer the question
In order to leave comments, you need to log in
Constructor:
The final formula is the sum of two parts, one for z > 0
, the second for z < 0
. The parameter z
here only switches parts and does not participate in the result in any way. If the idea is clear, you can modify it as you like.
f(x,z) = ((|z| + z) / 2) * |x| + (|z| - z) / 2) * x
Maybe you are looking for this:
https://en.wikipedia.org/wiki/%D0%9A%D0%BE%D0%BD%D...
https://en.wikipedia.org/wiki/%D0% 94%D0%B8%D0%B7%D...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question