Yorick

Yorick

Yorick est un langage de programmation interprété impératif conçu par David H. Munro. Il est destiné au calcul numérique et au tracé de graphiques. Sa syntaxe, fortement inspirée du C, est spécialement prévue pour les calculs sur les tableaux. Yorick s'apparente en cela au logiciel propriétaire IDL.

Sommaire

Mises en œuvre

Exemple de graphique avec Yorick/Gist.

Il existe actuellement une unique mise en œuvre du langage ; elle est sous licence libre. Multi-plateforme et capable d'interfaçage avec des routines fortran ou C, elle s'avère relativement compétitive pour le calcul numérique par rapport aux langages compilés. Pour cela, il faut suivre le paradigme vectoriel pour lequel l'interprétation est optimisée.

La partie graphique sous X Window se présente sous forme d'une bibliothèque indépendante, Gist, prévue pour être utilisées par d'autres applications. Elle est d'ailleurs employée par SciPy.

Exemple

Tracé d'une gaussienne (contours) avec Yorick

// Tracé d'une gaussienne en 2D

x = span(-20, 20, 100)(,-:1:100);
y = transpose(x);
sigmax = 7.;
sigmay = 10.;
theta = pi/3;
xp = cos(theta)*x+sin(theta)*y;
yp = -sin(theta)*x+cos(theta)*y;
z = exp(-0.5*((xp/sigmax)^2 + (yp/sigmay)^2));
plfc, z, y, x, levs=span(0, 1, 256); // iso-z
xytitles, "x (!mm)", "y (!mm)"

// Tracé du maximum selon x et selon y

plg, y(1,), x(z(mxx,),1), color="blue";
plg, y(1,z(,mxx)), x(,1), color="blue";

limits;
palette, "heat.gp"

Confusion

Beaucoup assimilent le langage Yorick au très efficace programmeur PHP du même nom, qui lui est issu de Fractale. C'est une confusion qui n'a cependant aucun fondement.

Voir aussi

Liens externes


Wikimedia Foundation. 2010.

Contenu soumis à la licence CC-BY-SA. Source : Article Yorick de Wikipédia en français (auteurs)

Игры ⚽ Поможем сделать НИР

Regardez d'autres dictionnaires:

  • Yorick — was the deceased court jester whose skull is exhumed by the gravedigger in Act 5, Scene 1, of Shakespeare s Hamlet . The sight of Yorick s skull evokes a monologue from Prince Hamlet on the vile effects of death::Alas, poor Yorick! I knew him,… …   Wikipedia

  • Yorick — [Yorick] a former court jester (= a man employed to amuse the king in the ↑Middle Ages) whose ↑skull is found by the men digging Ophelia’s grave in Shakespeare s play Hamlet. Hamlet picks up the ↑skull and makes a famous speech, which …   Useful english dictionary

  • Yorick — Yorick, Pseudonym für Sterne (Lorenz) …   Pierer's Universal-Lexikon

  • Yorick — Yorick, 1) s. Sterne. – 2) Pseudonym, s. Ferrigni …   Meyers Großes Konversations-Lexikon

  • Yorick — Yorick, Pseudonym des engl. Schriftstellers Lawrence Sterne (s.d.) …   Kleines Konversations-Lexikon

  • Yorick — m English: the name of the (defunct) court jester in Shakespeare s Hamlet. It is apparently a respelling of Jorck, a Danish form of GEORGE (SEE George) …   First names dictionary

  • Yorick — a former court jester (= a man employed to amuse the king in the Middle Ages) whose skull is found by the men digging Ophelia’s grave in Shakespeare’s play Hamlet. Hamlet picks up the skull and makes a famous speech, which begins: Alas, poor… …   Universalium

  • Yorick — Yor|ick a character in the play ↑Hamlet by William Shakespeare. He was once the king s ↑jester (=someone whose job was to entertain the King and make him laugh) but is now dead. Hamlet finds his ↑skull and says Alas! poor Yorick. I knew him,… …   Dictionary of contemporary English

  • Yorick (disambiguation) — Yorick can refer to:* Yorick, the deceased court jester whose skull is exhumed by the gravedigger in Act 5, Scene 1, of William Shakespeare s Hamlet . * Parson Yorick, a character devised by the author Laurence Sterne: the narrator of A… …   Wikipedia

  • Yorick van Wageningen — Données clés Naissance 16 avril 1964 (1964 04 16) (47 ans) Baarn, Utrecht,  Pays Bas Nationali …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”