One way the classes command can be used is to give it a list of numbers, a starting number, and a list of midpoints
and we will get a list of intervals with how many numbers are in each interval. However, the starting number seems to be ignored:
classes([0,0.5,1,1.5,2,2.5,3,3.5,4],1,[1,3,5])
classes([0,0.5,1,1.5,2,2.5,3,3.5,4],0,[1,3,5])
and
classes([0,0.5,1,1.5,2,2.5,3,3.5,4],0.5,[1,3,5])
all return
[[0.0 .. 2.0,4],[2.0 .. 4.0,4],[4.0 .. 6.0,1]]
for example, but if that number is left off,
classes([0,0.5,1,1.5,2,2.5,3,3.5,4],[1,3,5])
returns
[undef]
Does the starting number do anything?
Jay
The classes command
Messages in english
Modérateur : xcasadmin
Aller
- Utilisation/Users
- ↳ Enregistrement/Register
- ↳ Xcas sessions
- ↳ Arithmétique
- ↳ Algèbre
- ↳ Analyse
- ↳ Analyse numérique
- ↳ Géométrie
- ↳ Proba-stats
- ↳ Algorithmique
- ↳ Agrégation
- ↳ Enseignement supérieur
- ↳ Lycée
- ↳ Autres
- ↳ Xcas sessions (English)
- ↳ Xcas
- ↳ Xcas pour Firefox
- ↳ Xcas - English
- ↳ Bugs
- ↳ Annonces
- ↳ Accessibilite
- Enseignement/Teaching
- ↳ Algorithmique lycee
- ↳ Xcas lycée, hors algorithmique
- ↳ Xcas-capes
- ↳ Xcas-agregation
- ↳ UGA - option C 2020
- ↳ UGA - Agreg interne
- ↳ KhiCAS: Xcas pour calculatrices HP, Numworks, Casio, TI Nspire
- ↳ UGA-LST
- ↳ mat307 Courbes, eqdiff PHY
- ↳ mat404 blineaire, Fourier, PHY
- ↳ mat309 Arit, alglin INF
- ↳ mat406 Math ordi MAT&MIN
- ↳ English
- Developpement/Developpers
- ↳ Giac
- ↳ Giacpy
- ↳ Xcas devel
- ↳ Qcas
- ↳ Xcas smartphone/tablette/PDA
- ↳ Test