Properties
Category
English
Similar Topics
Statistics
Comments
9
Participants
5
Subscribers
6
Votes
1
Views
379
Share
Function(3, 4/3, 5/3) is not accepted
Not a Problem
Function(3, 4/3, 5/3) generates the error message: Illegal argument x.
Function(3 + 0 x, 4/3, 5/3) is ok.
 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
© 2023 International GeoGebra Institute
Try 3 ==> 3+0x
and inform us what app you are using.....
@hawe, the problem occurs in all plataforms. Using 3 + 0x works, but is quite unnatural. Thanks!
3 is a number. This represent arithmetic mode.
3+0x is a constant function. This represent algebraic mode.
The command is named "Function" so I think it would be easy to program it to recognize 3 in this context as a constant function instead a number. The use of 3 + 0x is not intuitive to students and other commands of GeoGebra recognizes constant functions (see, for instance, Curve(3, t, t, 0, 1)).
I hope you know the difference between "curve" and "function"???
Btw:
works fine.
This is fine (as well as If) so probably we won't change this
Yes, yes, I know the differences as I know the similarities: both are examples of maps (https://en.wikipedia.org/wi...).
I think I'm being misinterpreted here. I know there are workarounds to my problem but my point is the consistency of the command Function() being used with constants.
Argument 1: Function(3, x, 1, 1, y, 1, 1) works. Curve(3, 3, t, 1, 1) works also. Why does Function(3, 1, 1) generate an error?
Argument 2: I'm a translator of GeoGebra so I have access to the translation platform. There, it is written that "Function[sin(x),1,2] is now a synonym for If[1<=x<=2, sin(x)] (from version 5.0.9.0)". So, Function(3, 1, 1) should be translated to If(1 <= x <= 1, 3) and it should work but it doesn't.
Argument 3: Is there really a good (programming, mathematical, philosophical, ...) reason to avoid constants in the Function() command?
Yes, this is a good reason, Michael, I see.
Comments have been locked on this page!