<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="guide" id="variable" xml:lang="fr">

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

	<title>Variables and Constants</title>
    
    <p>
    To assign a value to a variable use the = symbol or choose the variable to assign to with the <gui>x</gui> button in <link xref="mouse">advanced mode</link>.
    A variable name must only contain upper or lower case characters, or underscores.
    </p>
    <example>
    <p>x=5</p>
    <p>exemple=82</p>
    </example>
    <p>
    Variables and constants can be used in any equation and are substituted for their assigned value.
    Variables and constants can be inserted using the <gui>x</gui> button.
    </p>
    <example>
    <p>6x+3</p>
    <p>xy−3x+7y−21</p>
    </example>
    <p>Les variables suivantes sont toujours définies.</p>
    <table>
    <tr>
    <td><p>_</p></td>
    <td><p>Résultat du calcul précédent</p></td>
    </tr>
    <tr>
    <td><p>rand</p></td>
    <td><p>Une valeur aléatoire comprise entre [0,1] (change à chaque lecture)</p></td>
    </tr>
    </table>
    <p>
    The following constants are always defined.
    </p>
    <table>
    <tr>
    <td colspan="2"><p>Mathematics</p></td>
    </tr>
    <tr>
    <td><p>e</p></td>
    <td><p><link xref="logarithm">Euler’s Number</link></p></td>
    </tr>
    <tr>
    <td><p>π</p></td>
    <td><p><link xref="trigonometry">Pi</link></p></td>
    </tr>
    <tr>
    <td><p>τ</p></td>
    <td><p><link xref="trigonometry">Tau</link></p></td>
    </tr>
    <tr>
    <td><p>φ</p></td>
    <td><p>Golden Ratio</p></td>
    </tr>
    <tr>
    <td colspan="2"><p>Electromagnetism</p></td>
    </tr>
    <tr>
    <td><p>c₀</p></td>
    <td><p>Light Speed</p></td>
    </tr>
    <tr>
    <td><p>е</p></td>
    <td><p>Elementary Charge</p></td>
    </tr>
    <tr>
    <td><p>Z₀</p></td>
    <td><p>Impedance of Vacuum</p></td>
    </tr>
    <tr>
    <td><p>μ₀</p></td>
    <td><p>Permeability of Vacuum</p></td>
    </tr>
    <tr>
    <td><p>ε₀</p></td>
    <td><p>Permittivity of Vacuum</p></td>
    </tr>
    <tr>
    <td colspan="2"><p>Atomic &amp; Nuclear</p></td>
    </tr>
    <tr>
    <td><p>h</p></td>
    <td><p>Planck’s Constant</p></td>
    </tr>
    <tr>
    <td><p>α</p></td>
    <td><p>Fine-Structure Constant</p></td>
    </tr>
    <tr>
    <td><p>mₑ</p></td>
    <td><p>Electron Mass</p></td>
    </tr>
    <tr>
    <td><p>mₚ</p></td>
    <td><p>Proton Mass</p></td>
    </tr>
    <tr>
    <td colspan="2"><p>Thermodynamics</p></td>
    </tr>
    <tr>
    <td><p>k</p></td>
    <td><p>Boltzmann Constant</p></td>
    </tr>
    <tr>
    <td><p>mᵤ</p></td>
    <td><p>Atomic Mass Unit</p></td>
    </tr>
    <tr>
    <td><p>R</p></td>
    <td><p>Molar Gas Constant</p></td>
    </tr>
    <tr>
    <td><p>σ</p></td>
    <td><p>Stefan-Boltzmann Constant</p></td>
    </tr>
    <tr>
    <td><p>Nᴀ</p></td>
    <td><p>Avogadro’s Number</p></td>
    </tr>
    <tr>
    <td colspan="2"><p>Gravitation</p></td>
    </tr>
    <tr>
    <td><p>G</p></td>
    <td><p>Gravitational Constant</p></td>
    </tr>
    <tr>
    <td><p>g</p></td>
    <td><p>Earth Acceleration</p></td>
    </tr>
    </table>
</page>
