Properties
Category
English
Statistics
Comments
4
Participants
4
Subscribers
4
Votes
1
Views
56
Share
why "x/(x>0)" produce the same graph as "If(x>0,x)" ?
Answered
i can input something like If(x>0, x) in Algebra zone, it works fine;
but if i input some like x/(x>0), it shows the same graph. why?
i can see that the "/" is parsed as DIVIDE in java code:
 GeoGebra
 Help
 Partners

Contact us
 Feedback & Questions
 This email address is being protected from spambots. You need JavaScript enabled to view it.
 +43 677 6137 2693
© 2021 International GeoGebra Institute
x>0 is either true (1) or false (0)
thanks! but if logical value true and false are treated as numerical value 1 and 0, why doesn't "x>0" produce the same graph as "if(x>0,1,0)" ?
if the conversion from true/false to 1/0 is implicit in some context, is there an explicit function for this?
Whether inequalities are treated as numerical values depends on context. If you input an inequality, it's exactly that  an inequality  for Geogebra, and if it's one with only variables x and y and not too complicated (see https://wiki.geogebra.org/e... for details) then the Graphics view shows the corresponding area. (The yellow half plane in your example.)
Comments have been locked on this page!