Properties
Category
English
Similar Topics
Statistics
Comments
4
Participants
3
Subscribers
0
Votes
1
Views
1081
Share
Coefficients[] command is buggy
New
Hi,
In current and beta versions of webbased Geogebra, the Coefficients[] command yields an error when fed a variable. For example:
 d(x)=x^2+6x+9
coefficients[d]
yields the error "Illegal arguments: Number d" (clearly d isn't a number).
 coefficients[d(x)]
yields "Illegal argument: x".
This only is a problem on entry  any sheets I have created before using Coefficients continue to work as expected, but cannot be changed without producing one of the above errors.
 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
Hmmm. Curiouser and curiouser.
I repeated my own example (in 5.0.169 in Chrome) and it worked fine, so I assumed it was just a glitch. However I then went about creating the worksheet I intended to create before I encountered this problem, and I was able to regenerate the issue as follows:
d(x)=x+2
coefficients[d] < works fine
e(x)=x^2+8x+9
coefficients[d] < still works fine
f(x)=d*e
coefficients[d] < still works fine, as does coefficients[e] or [f]
f_1(x)=expand[d*e]
coefficients[d] < does not work any more.
So the command seems to fall over once any algebraic commands are issued. I've tested Expand and Simplify and both yield the same issue, and it happens even if the expression being expanded is not dependent on d at all.
Weird, huh?
Hi
I think that the problem is with expand command
When you use it in Input bar, everything go wrong
(even d(1) for example)
Just try :
f(x)=x+1
Expand[f]
f(1) > error with input bar, not with CAS...
Looks like a widereaching problem with 5.0.169  reported here too as a general issue  not limited to just this command. Just happened to be the one I was using today!
Please try 5.0.170.0, online now
Comments have been locked on this page!