<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="guide" id="function" lang="fr">

    <info>
        <link type="guide" xref="index#equation"/>
    <credit type="translator copyright"><name>Jonathan Ernst</name><email>jonathan@ernstfamily.ch</email><years>2006</years></credit><credit type="translator copyright"><name>Claude Paroz</name><email>claude@2xlibre.net</email><years>2006-2009</years></credit><credit type="translator copyright"><name>Laurent Coudeur</name><email>laurentc@iol.ie</email><years>2009-2010</years></credit><credit type="translator copyright"><name>Alain Lojewski</name><email>allomervan@gmail.com</email><years>2014</years></credit><credit type="translator copyright"><name>Guillaume Bernard</name><email>associations@guillaume-bernard.fr</email><years>2015-2021</years></credit><credit type="translator copyright"><name>Irénée Thirion</name><email>irenee.thirion@e.email</email><years>2023</years></credit></info>

	<title>Fonctions</title>
    
    <p>Les fonctions peuvent être utilisées en saisissant le nom de la fonction suivi de son argument. <app>Calculatrice</app> prend aussi en charge les fonctions personnalisées de l’utilisateur. Si l’argument n’est pas un nombre ou une <link xref="variable">variable simple</link>, alors séparez chaque argument par un point virgule et mettez la liste des arguments entre parenthèses.</p>
    <example>
    <p its:locNote="Translators: Do not translate the word 'sin'!">sin 30</p>
    <p its:locNote="Translators: Do not translate the word 'abs'!">abs (5−9)</p>
    <p its:locNote="Translators: Do not translate the word 'fun'!">fon (9;10)</p>
    </example>
    <p>
    To add a new function type the function in the format as given below. A function name and arguments must only contain upper or lower case characters, or underscores. The part after @ is the function description which is optional.
    </p>
    <example>
    <p>InteretSimple (principal ; taux ; durée) = capital * taux * durée @ formule d’intérêts simples</p>
    </example>
    <p>Vous pouvez aussi ajouter et insérer des fonctions à l’aide du bouton f(x).</p>
    <example>
    <p>Cliquez sur f(x). Saisissez le nom de la fonction dans le champ, choisissez le nombre d’arguments et cliquez sur le « + » à côté. Sur l’écran de la calculatrice, saisissez l’expression de la fonction et appuyez sur <key>Entrée</key>.</p>
    </example>
    <example>
    <p>Cliquez sur f(x). Choisissez la fonction et cliquez dessus.</p>
    </example>
    <p>Les fonctions suivantes sont définies.</p>
    <table>
    <tr>
    <td colspan="2"><p>Trigonométrie</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">sin</p></td>
    <td><p><link xref="trigonometry">Sinus</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">cos</p></td>
    <td><p><link xref="trigonometry">Cosinus</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">tan</p></td>
    <td><p><link xref="trigonometry">Tangente</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">sin⁻¹ / asin</p></td>
    <td><p><link xref="trigonometry">Inverse Sine</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">cos⁻¹ / acos</p></td>
    <td><p><link xref="trigonometry">Inverse Cosine</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">tan⁻¹ / atan</p></td>
    <td><p><link xref="trigonometry">Inverse Tangent</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">sinh</p></td>
    <td><p><link xref="trigonometry">Sinus hyperbolique</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">cosh</p></td>
    <td><p><link xref="trigonometry">Cosinus hyperbolique</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">tanh</p></td>
    <td><p><link xref="trigonometry">Tangente hyperbolique</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">sinh⁻¹ / asinh</p></td>
    <td><p><link xref="trigonometry">Inverse Hyperbolic Sine</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">cosh⁻¹ / acosh</p></td>
    <td><p><link xref="trigonometry">Inverse Hyperbolic Cosine</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">tanh⁻¹ / atanh</p></td>
    <td><p><link xref="trigonometry">Inverse Hyperbolic Tangent</link></p></td>
    </tr>
    <tr>
    <td colspan="2"><p>Complex</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">conj</p></td>
    <td><p><link xref="complex">Complex Conjugate</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">arg</p></td>
    <td><p><link xref="complex">Complex Argument</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">re</p></td>
    <td><p><link xref="complex">Real Component</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">im</p></td>
    <td><p><link xref="complex">Imaginary Component</link></p></td>
    </tr>
    <tr>
    <td colspan="2"><p>Mode programmation</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">twos</p></td>
    <td><p><link xref="mode-programming">Two’s Complement</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">bswap</p></td>
    <td><p><link xref="mode-programming">Swap Endianness</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">mod</p></td>
    <td><p><link xref="modulus">Modulus Divide</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">modexp</p></td>
    <td><p><link xref="modulus">Modular Exponentiation</link></p></td>
    </tr>
    <tr>
    <td colspan="2"><p>Rounding</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">round</p></td>
    <td><p><link xref="rounding">Round</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">floor</p></td>
    <td><p><link xref="rounding">Floor</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">ceil</p></td>
    <td><p><link xref="rounding">Ceiling</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">int</p></td>
    <td><p><link xref="rounding">Integer Component</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">frac</p></td>
    <td><p><link xref="rounding">Fractional Component</link></p></td>
    </tr>
    <tr>
    <td colspan="2"><p>Statistics</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">sum</p></td>
    <td><p>Sum</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">sumsq</p></td>
    <td><p>Sum of Squares</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">average</p></td>
    <td><p>Average</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">median</p></td>
    <td><p>Median</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">min</p></td>
    <td><p>Minimum Value</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">max</p></td>
    <td><p>Maximum Value</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">stdev</p></td>
    <td><p>Sample Standard Deviation</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">stdevp</p></td>
    <td><p>Population Standard Deviation</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">var</p></td>
    <td><p>Sample Variance</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">varp</p></td>
    <td><p>Population Variance</p></td>
    </tr>
    <tr>
    <td colspan="2"><p>Sundry</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">log</p></td>
    <td><p><link xref="logarithm">Logarithme</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">ln</p></td>
    <td><p><link xref="logarithm">Logarithme népérien</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">sqrt</p></td>
    <td><p><link xref="power">Racine carrée</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">abs</p></td>
    <td><p><link xref="absolute">Valeur absolue</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">sgn</p></td>
    <td><p><link xref="absolute">Signum</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">ncr</p></td>
    <td><p>Combination</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">npr</p></td>
    <td><p>Permutation</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">gcd</p></td>
    <td><p>Greatest Common Divisor</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">lcm</p></td>
    <td><p>Least Common Multiple</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">cmp</p></td>
    <td><p>Comparison (Kronecker Delta)</p></td>
    </tr>
    </table>
</page>
