Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
4_domaines_specialises:mathematiques:structures:declarer_une_nouvelle_fonction [2022/01/05 23:00] – Début de relecture. yannick.tanguy4_domaines_specialises:mathematiques:structures:declarer_une_nouvelle_fonction [2023/01/12 12:47] (Version actuelle) – Correction de coquille dans le nom de "\exp". jejust
Ligne 1: Ligne 1:
-====== Comment définir une fonction? ======+====== Comment obtenir des opérateurs mathématiques textuels comme « log »? ======
  
 Il existe un certain nombre de fonctions définies par défaut : Il existe un certain nombre de fonctions définies par défaut :
  
-Symbole                ^ Commandes                ^^ Symbole                ^ Commandes                ^ +Opérateur              ^ Commandes                ^ ^ Opérateur              ^ Commandes                ^ 
-| $\arccos$              | ''\arccos''              || $\cos$                 | ''\cos''                 | +| $\arccos$              | ''\arccos''              | | $\cos$                 | ''\cos''                 | 
-| $\arcsin$              | ''\arcsin''              || $\sin$                 | ''\sin''                 | +| $\arcsin$              | ''\arcsin''              | | $\sin$                 | ''\sin''                 | 
-| $\arctan$              | ''\arctan''              || $\tan$                 | ''\tan''                 | +| $\arctan$              | ''\arctan''              | | $\tan$                 | ''\tan''                 | 
-| $\inf$                 | ''\inf''                 || $\sup$                 | ''\sup''                 | +| $\inf$                 | ''\inf''                 | | $\sup$                 | ''\sup''                 | 
-| $\min$                 | ''\min''                 || $\max$                 | ''\max''                 | +| $\min$                 | ''\min''                 | | $\max$                 | ''\max''                 | 
-| $\liminf$              | ''\liminf''              || $\limsup$              | ''\limsup''              | +| $\liminf$              | ''\liminf''              | | $\limsup$              | ''\limsup''              | 
-| $\cosh$                | ''\cosh''                || $\sinh$                | ''\sinh''                | +| $\cosh$                | ''\cosh''                | | $\sinh$                | ''\sinh''                | 
-| $\cot$                 | ''\cot''                 || $\coth$                | ''\coth''                | +| $\cot$                 | ''\cot''                 | | $\coth$                | ''\coth''                | 
-| $\exp$                 | ''\exph''                || $\log$                 | ''\log''                 | +| $\exp$                 | ''\exp''                 | | $\log$                 | ''\log''                 | 
-| $\ln$                  | ''\ln''                  || $\lg$                  | ''\lg''                  | +| $\ln$                  | ''\ln''                  | | $\lg$                  | ''\lg''                  | 
-| $\csc$                 | ''\csc''                 || $\ker$                 | ''\ker''                 | +| $\csc$                 | ''\csc''                 | | $\ker$                 | ''\ker''                 | 
-| $\deg$                 | ''\deg''                 || $\gcd$                 | ''\gcd''                 | +| $\deg$                 | ''\deg''                 | | $\gcd$                 | ''\gcd''                 | 
-| $\Pr$                  | ''\Pr''                  || $\det$                 | ''\det''                 | +| $\Pr$                  | ''\Pr''                  | | $\det$                 | ''\det''                 | 
-| $\hom$                 | ''\hom''                 || $\lim$                 | ''\lim''                 | +| $\hom$                 | ''\hom''                 | | $\lim$                 | ''\lim''                 | 
-| $\sec$                 | ''\sec''                 || $\arg$                 | ''\arg''                 | +| $\sec$                 | ''\sec''                 | | $\arg$                 | ''\arg''                 | 
-| $\dim$                 | ''\dim''                 || $\tanh$                | ''\tanh''                |+| $\dim$                 | ''\dim''                 | | $\tanh$                | ''\tanh''                |
  
-On peut utiliser la commande ''\mathop''. Si l'on utilise en plus la commande ''nolimits'', on peut déterminer la gestion des indices et exposants de cette fonction comme dans l'exemple suivant.+S'il vous manque des fonctions, vous pouvez en définir vous-même avec la méthode indiquée à la question « [[4_domaines_specialises/mathematiques/structures/operateurs/definir_un_nouvel_operateur|Comment déclarer de nouveaux opérateurs mathématiques ?]] »
  
-<code latex> +{{htmlmetatags>metatag-keywords=(LaTeX,mathématiques,structures mathématiques,opérateurs mathématiques,fonctions)
-\newcommand{\rad}{\mathop{\mathrm{rad}}} +
-\newcommand{\radn}{\mathop{\mathrm{rad}}\nolimits} +
-\[ \alpha \rad_{t \to \infty} = 0 \] +
-\[ \alpha \radn_{t \to \infty} = 0 \] +
-</code> +
- +
-Sous <latex>\LaTeXe</latex>, l'extension [[ctanpkg>amsopn]] (cf.~\vref{question=AmSLaTeX}) +
-permet de déclarer de nouvelles fonctions qui seront gérées comme des +
-fonctions mathématiques (gestion de la police de caractères, disposition des +
-indices et exposants, etc.). Pour cela il faut déclarer une commande du +
-type~: ''DeclareMathOperator''\{''fonction''\}\marg{fonction} dans le +
-préambule du document. Pour que les indices et exposants de la nouvelle +
-fonction puissent être gérés comme ceux de la fonction ''sum'', il faut +
-alors plutôt utiliser ''DeclareMathOperator*''+
- +
-De même, l'extension [[ctanpkg>amstex]] (<latex>\LaTeX</latex> 2.09) définit les commandes +
-''operatorname'' et ''operatornamewithlimits''+
- +
-Exemple~: +
- +
-<code latex> +
-$\operatorname{rad}$ +
-</code> +
- +
-{{htmlmetatags>metatag-keywords=(LaTeX)+
 metatag-og:title=(Comment définir une fonction) metatag-og:title=(Comment définir une fonction)
 metatag-og:site_name=(FAQ LaTeX francophone) metatag-og:site_name=(FAQ LaTeX francophone)
 }} }}
4_domaines_specialises/mathematiques/structures/declarer_une_nouvelle_fonction.1641423617.txt.gz · Dernière modification : 2022/01/05 23:00 de yannick.tanguy
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0