Satimage Précédent | Suivant
Concaténation des arrays of real
Accueil ▸ Documentation ▸ Smile ▸ Calcul numérique ▸ Le calcul avec Smile ▸ Concaténation des arrays of real  
Pour concaténer deux ou plusieurs arrays of real, utilisez la construction suivante :
set a to {a1, a2, a3} as array of real
Cela concatène les trois arrays of real en un seul.

Vous pouvez mélanger de cette manière des arrays of real et des nombres :
set a to {0, 1 / 4} as array of real
set b to {1 / 2, 3 / 4} as array of real
set c to {a, b, 1} as array of real
c as list of real
  --  {0.0, 0.25, 0.5, 0.75, 1.0}
English version
Copyright ©2008 Paris, Satimage