O
O
Oleg Pogrebnyak2018-04-17 10:33:49
Mathematics
Oleg Pogrebnyak, 2018-04-17 10:33:49

Can it be expressed in a formula?

I accidentally stumbled upon the schedule and conditions, I became interested in whether these conditions can be expressed in one formula.
Y = 0 for X < 3
Y = 2 for X >= 3 and X < 6
Y = 4 for X > 6

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Daniil Popov, 2018-04-17
@S0HardCore

What type of record do you need.
In mathematics, like this:
In JS, you can write like this:
y = 4*(x>6) || 2*(x>=3) || 0
options mass

X
xSkyFoXx, 2018-04-17
@xSkyFoXx

Yes, in mathematical notation, a curly bracket with 3 conditions is used for this.

G
Griboks, 2018-04-17
@Griboks

Can be expressed in several ways:
1) piecewise function
2) rect function
3) fourier
4) simple product of functions
5) any other approximation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question