Indications pour Mathematica

Chapitre: XXV. Corrigés des exercices Prérequis: -

Nous listons ci-dessous les fonctions Mathematica que nous avons utilisées pour les travaux de programmation. Évidemment, il y a toujours plusieurs façons de faire et peut-être que vous préférerez utiliser d'autres fonctions.

Une des grande forces de Mathematica est la gestion des listes. Nous utilisons abondamment ce concept. Pour vous familiariser avec les listes, vous pouvez télécharger le fichier listes.nb (12 Ko).

Remarque: si vous n'avez pas le logiciel Mathematica, vous pourrez quand même consulter les fichiers .nb en téléchargeant le logiciel gratuit MathReader.


Thèmes d'étude Fonctions Mathematica utilisées dans les corrigés
Alphabet Morse Characters, For, Length, Play, Sin, StringJoin, StringReplace
Alphabets désordonnés AppendTo, Characters, For, FromCharacterCode, If, Length, MemberQ, Mod, Not, Position, Select, StringJoin, Table, ToCharacterCode, ToLowerCase, ToUpperCase, While
Ave Maria de Trithème Characters, StringJoin, ToLowerCase, ToUpperCase
Cacher un texte dans une image Abs, Append, AppendTo, Dimensions, Drop, Export (version 4), If, Import (version 4), IntegerDigits, Flatten, For, FromCharacterCode, FromDigits, Graphics, Mod, Length, Partition, Raster, Show, Take, ToCharacterCode
Chiffre Atbash Characters, FromCharacterCode, Module, Select, StringJoin, StringReplace, ToCharacterCode, ToLowerCase, ToUpperCase
Chiffre de Beaufort Characters, FromCharacterCode, Join, Length, Mod, Module, Select, StringJoin, Take, ToCharacterCode, ToLowerCase, ToUpperCase, While
Chiffre de Beaufort (variante à l'allemande) Characters, FromCharacterCode, Join, Length, Mod, Module, Select, StringJoin, Take, ToCharacterCode, ToLowerCase, ToUpperCase, While
Chiffre de César Characters, FromCharacterCode, Mod, Module, Select, StringJoin, ToCharacterCode, ToLowerCase, ToUpperCase
Chiffre de César (décryptement) Characters, For, FromCharacterCode, Mod, Module, Select, StringJoin, ToCharacterCode, ToLowerCase, ToUpperCase
Chiffre de Collon AppendTo, BarChart, Flatten, For, FromCharacterCode, Length, Module, OrderedQ, Print, Select, Sort, StringJoin, StringReplace, Table, Take, ToCharacterCode, While
Chiffre de Hill Append, Characters, Inverse, Flatten, For, FromCharacterCode, If, Join, Length, Mod, Module, Partition, Select, StringJoin, TableForm, ToCharacterCode, ToLowerCase, ToUpperCase, While
Chiffre de Hill (énumération des matrices valides) For, Det, If, Mod
Chiffre de Vigenère Characters, FromCharacterCode, Join, Length, Mod, Module, Select, StringJoin, Take, ToCharacterCode, ToLowerCase, ToUpperCase, While
Chiffre de Vigenère (longueur de la clef) AppendTo, Divisors, First, For, If, Intersection, Length, MemberQ, Print, StringLength, StringPosition, StringTake
Code ASCII For, FromCharacterCode, Print
Code Morse fractionné AppendTo, Characters, For, FromCharacterCode, If, Length, MemberQ, Mod, Not, Select, StringInsert, StringJoin, StringLength, StringReplace, Table, ToLowerCase, ToString, ToUpperCase, While
Double représentation du E AppendTo, Characters, For, FromCharacterCode, If, Length, MemberQ, Mod, Not, Position, Random, Select, StringJoin, Table, ToCharacterCode, ToLowerCase, ToUpperCase, While
Images cryptées BitXor, Dimensions, Graphics, GrayLevel, If, ListDensityPlot, Polygon, Random, Round, SeedRandom, Show, Table
Problème du sac à dos For, If, Length, Prepend, Print
RSA Apply, FactorInteger, For, FromCharacterCode, GCD, Length, Map, Mod, Module, PowerMod, PrimeQ, Quotient, StringInsert, StringJoin, StringLength, StringTake, Table, ToCharacterCode, ToExpression, ToString, While
Système du dictionnaire Array, AppendTo, Characters, False, For, FromCharacterCode, If, Length, Print, Random, StringJoin, ToCharacterCode, ToLowerCase, ToUpperCase, True, While
Tableau de Trithème Characters, FromCharacterCode, Join, Length, Mod, Module, Select, StringJoin, Take, ToCharacterCode, ToLowerCase, ToUpperCase, While


Liens pour Mathematica


Didier Müller, 15.10.02