x-3(x<=0) question

leeying shared this problem 2 months ago
Not a Problem

When inputting x-3(x<=0), it displays two branches. What does the formula mean? I wanted it displayed the left branch, that is , when x<=0, displays the "x-3,(x<=0)" function.

What does the formula x-3(x<=0) mean (no comma)?

And tell you the truth, the problem was discovered by a student of mine, Ma Zhicheng.

Comments (6)

photo
1

(x<=0)
is either true (1) or false (0) so

x-3(x<=0) 

is either x-0 or x-3. You can try these two syntaxes:


(x-3)(x<=0)


x-3,x<=0

photo
1

Where does x-0 come from?

And I know what x-3,(x<=0) means. It indicates that when x<=0, y=x-3.

photo
1

x-3(x<=0) 

means

x-3 * (x<=0) 

photo
1

Now I see. Thank you.

photo
photo
1

f(x):=x - 3 If[x<=0, 1, 0]

Files: if.ggb
photo
1

Yes, I see. Thank you very much.

photo
© 2019 International GeoGebra Institute