Error of the If command in the input bar
I found an error of the if command when entering two domain restriction conditions for multivariable functions.
I do not understand why if I put the command from the input bar it does not work and it produces an error message. But if I first enter the function without conditions in the input bar and then change it from the properties window the command does not give errors. If I place if nested in the input bar if they work.
If(x > 0, If(0 < y < 1, 5ℯ^(-3π² x) sin(π y)))
If(0 < y < 1, If(x > 0, 5ℯ^(-3π² x) sin(π y)))
The nested if graphs are not the same as the if graph with the conditions separately.
In addition, the commands using and and or generate other graphics with restrictions.
If(x > 1 ∧ 0 < y < 1, 5ℯ^(-3π² x) sin(π y))
If(x > 1 ∨ 0 < y < 1, 5ℯ^(-3π² x) sin(π y))
Did you read the manual?
https://wiki.geogebra.org/e...
I think this:
if(x>0,0<y<1,f) is read like if(x>0, function 1 when 0<y<1 otherwise 0,other wise f)
the second condition is interpreted as function defined with a boolean (0 or 1) value
see the plane zone at 1 high in your second image
Comments have been locked on this page!