Properties
Similar Topics
Statistics
Comments
12
Participants
5
Subscribers
5
Votes
1
Views
1301
Share
Answered
Hi.
There seems to be a bug in the Sequence command when I use a conditional expression that involves both the iteration variable and the limit variable.
At first it seems to work but then it's no longer possible to modify the Sequence command by clicking on it. Bug can be reproduced in the online version of GeoGebra.
greetings and thanks in advance for any feedback, Niek
Files:
geogebra-test-s...
- 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
Hi,
The Sequence : Séquence(Si(p ≠ v, (p, p), (p / 2, p)), p, 1, v) works properly
and give the list : {(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (3, 6)} for v=6
Version Geogebra ; 5.0.570.0-d
Please describe exactly
* what you get
* what you think you should get
What I want is a Sequence with a variable limit (so I have a slider to set a variable v for the limit) and I want to use a conditional statement in the sequence expression to distinguish between the last item in the sequence and all other items in the sequence.
In the example ggb file attached in my posting, I generate a sequence of points with an iteration variable p, where all items generated in the sequence are points (p,p) except for the last item in the sequence that is the point (p/2, p).
Visually it seems to work, since it displays the points I was expecting to get (as visible in the screenshot):
https://i.imgur.com/RuQO2sE.png
But then when I try to change something about the sequence command by clicking on it, I don't get the prompt allowing me to modify the expression, but it displays an empty box where previously the Sequence command was visible (as visible in the next screenshot):
https://i.imgur.com/2oF4Evp.png
This happens for me when opening the ggb file in the online version of GeoGebra (https://www.geogebra.org/graphing).
Hi,
All the values of the cursor v should be integer as :
Min value = 1
Max value = 10
Increment = 1
So you need to update the properties of cursor v.
Then you will get all the points.
https://i.imgur.com/mH5LkCf.png
If I inspect the properties for the slider it already seems v only takes on integer values between 1 and 10. Also, I can change the slider and the sequence behaves as expected, but it still doesn't allow me to click on the sequence command to change anything about it.
In Geogebra classic mod
Right click mouse on the sequence permit you to update it.
Look at the pictures joined.
Ah ok yes, in the item's settings the definition can be modified. But it still seems there is a bug, because somehow the item can't be duplicated or modified in the usual way in the CAS window.
Oh, I see duplicate does work, it's just confusing that it doesn't display the duplicated expression, but once you click somewhere else the duplicate does show up.
As a workaround, try changing
to
or l1=Sequence(If(p≟v,((p)/(2),p),(p,p)),p,1,v)
Oh right, those workarounds resolve the issue. Still strange though that such subtle changes make the difference between GeoGebra malfunctioning or working properly.
Comments have been locked on this page!