complex number/fr
English · Français
Les nombres complexes sont un concept mathématique fournissant des solutions à des équations telles que $x^2 = -1$.
Dans la bibliothèque d'exécution par défaut de FPC, l'unité uComplex définit un type complex et beaucoup d'opérateurs et autres fonctions.
u dans uComplex signifie la lettre grecque µ signifiant “micro”, car l'implémentation est gardée aussi simple que possible.
Dans 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.
program complexDemo(input, output, stderr);
uses
uComplex;
var
x, y: complex;
begin
// specifying real and imaginary part
x := -5 + 2 * i;
// specifying magnitude and phase angle
// y := sqrt(2) * (cos(pi/4) + i * sin(pi/4))
y.re := 1;
y.im := 1;
x := x + y;
// there is no toString functionality:
writeLn('x = ', x.re, ' + ', x.im, 'i');
end.Voir aussi
- DMath, un bibliothèque mathématique qui contient aussi une implémentation des nombres complexes.
- 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.
- NumLib documentation, où
typ.complexest un objet.
Références externes
- “Nombre complexe” sur Wikipedia
packages/rtl-extra/src/inc/ucomplex.ppCode sourcepackages/numlib/src/typ.pasCode source
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.
Edited on wiki.freepascal.org by 2 people, 2020–2022
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| E-ric | Total translation. | |
| Kai Burghardt | resolve Category: Pages using deprecated enclose attributes (minor) |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
