summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/proflycee/tex/proflycee-tools-complexes.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/proflycee/tex/proflycee-tools-complexes.tex')
-rw-r--r--macros/latex/contrib/proflycee/tex/proflycee-tools-complexes.tex19
1 files changed, 16 insertions, 3 deletions
diff --git a/macros/latex/contrib/proflycee/tex/proflycee-tools-complexes.tex b/macros/latex/contrib/proflycee/tex/proflycee-tools-complexes.tex
index ca64c0ac40..fedb4bfcfc 100644
--- a/macros/latex/contrib/proflycee/tex/proflycee-tools-complexes.tex
+++ b/macros/latex/contrib/proflycee/tex/proflycee-tools-complexes.tex
@@ -1,5 +1,5 @@
% proflycee-tools-complexes.tex
-% Copyright 2023 Cédric Pierquet
+% Copyright 2023 Cédric Pierquet (expérimental)
% Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt
\NewDocumentCommand\PartieReelle{ D<>{} m O{\PartReRes} }{%
@@ -59,14 +59,27 @@
\PartieReelle{#3}[\tmpreB]%
\PartieImaginaire{#2}[\tmpimA]%
\PartieImaginaire{#3}[\tmpimB]%
- \xdef\tmpreCalc{(\tmpreA)+(\tmpreB)}%
+ %\xdef\tmpreCalc{(\tmpreA)+(\tmpreB)}%
\xdef\xinttmpreCalc{\xinteval{(\tmpreA)+(\tmpreB)}}%
- \xdef\tmpimCalc{(\tmpimA)+(\tmpimB)}%
+ %\xdef\tmpimCalc{(\tmpimA)+(\tmpimB)}%
\xdef\xinttmpimCalc{\xinteval{(\tmpimA)+(\tmpimB)}}%
%\xinttmpreCalc\text{ et }\xinttmpimCalc.
\AffComplexe[#1]%
}
+\NewDocumentCommand\DifferenceComplexes{ O{} m m }{%
+ \PartieReelle{#2}[\tmpreA]%
+ \PartieReelle{#3}[\tmpreB]%
+ \PartieImaginaire{#2}[\tmpimA]%
+ \PartieImaginaire{#3}[\tmpimB]%
+ %\xdef\tmpreCalc{(\tmpreA)-(\tmpreB)}%
+ \xdef\xinttmpreCalc{\xinteval{(\tmpreA)-(\tmpreB)}}%
+ %\xdef\tmpimCalc{(\tmpimA)-(\tmpimB)}%
+ \xdef\xinttmpimCalc{\xinteval{(\tmpimA)-(\tmpimB)}}%
+ %\xinttmpreCalc\text{ et }\xinttmpimCalc.
+ \AffComplexe[#1]%
+}
+
\NewDocumentCommand\ProduitComplexes{ O{} m m }{%
\PartieReelle{#2}[\tmpreA]%
\PartieReelle{#3}[\tmpreB]%