L
L
leadrig2019-10-09 18:41:52
Mathematics
leadrig, 2019-10-09 18:41:52

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

3 answer(s)
S
Sergey Sokolov, 2019-10-09
@leadrig

Constructor:
The final formula is the sum of two parts, one for z > 0, the second for z < 0. The parameter zhere 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

S
Saboteur, 2019-10-09
@saboteur_kiev

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...

K
Ksenia, 2019-10-09
@Ksushqa

Ah, math. How long ago it was. *wiggles*
I think it's a piecewise function. One equation is not enough.
y =
1) = |x| * z, for z > 0, x - any
2) = x * |z|, for z < 0, x - any
At zero, define it yourself, if it exists, of course.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question