Sign in Join
Wiki copytemporary

complex number/fr: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: complex number/fr

OldNewLine
1+Les nombres complexes sont un concept mathématique fournissant des solutions à des équations telles que $`x^2 = -1`$.
2+
3+Dans la [[RTL|bibliothèque d'exécution]] par défaut de [[FPC/fr|FPC]], l'unité `uComplex` définit un type `complex` et beaucoup d'opérateurs et autres fonctions.
4+
5+`u` dans `uComplex` signifie la lettre grecque µ signifiant “micro”, car l'implémentation est gardée aussi simple que possible.
6+
7+Dans [[Extended Pascal|extended Pascal]], qu'il est prévu d'implémenter dans FPC un jour, le type de données `complex` est défini comme une paretier du langage.
8+
9+``` pascal
10+program complexDemo(input, output, stderr);
11+uses
12+ uComplex;
13+var
14+ x, y: complex;
15+begin
16+ // specifying real and imaginary part
17+ x := -5 + 2 * i;
18+
19+ // specifying magnitude and phase angle
20+ // y := sqrt(2) * (cos(pi/4) + i * sin(pi/4))
21+ y.re := 1;
22+ y.im := 1;
23+
24+ x := x + y;
25+ // there is no toString functionality:
26+ writeLn('x = ', x.re, ' + ', x.im, 'i');
27+end.
28+```
29+
30+## Voir aussi
31+
32+- [[DMath]], un bibliothèque mathématique qui contient aussi une implémentation des nombres complexes.
33+- [[LMath]], développement récent de la bibliothèque LMath, avec un support plus complet des nombres complexes, où des opérateurs sur eux sont définis.
34+- [[NumLib Documentation|NumLib documentation]], où `typ.complex` est un [[Object/fr|objet]].
35+
36+## Références externes
37+
38+- [“Nombre complexe” sur Wikipedia](https://fr.wikipedia.org/wiki/Complex_number)
39+- [`packages/rtl-extra/src/inc/ucomplex.pp` Code source](https://svn.freepascal.org/cgi-bin/viewvc.cgi/tags/release_3_0_4/packages/rtl-extra/src/inc/ucomplex.pp?view=markup)
40+- [`packages/numlib/src/typ.pas` Code source](https://svn.freepascal.org/cgi-bin/viewvc.cgi/tags/release_3_0_4/packages/numlib/src/typ.pas?view=markup#l134)
41+
42+---
43+*From the Free Pascal wiki, page "complex number/fr", as it stood on 2022-08-06 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history