/latest/modules/physics/units/prefixes.html
HTML | 159 lines | 148 code | 11 blank | 0 comment | 0 complexity | b20bea975f4f543049f82a33781e1e42 MD5 | raw file
-
- <!DOCTYPE html>
-
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
-
- <title>Unit prefixes — SymPy 1.10.1 documentation</title>
- <link rel="stylesheet" type="text/css" href="../../../_static/pygments.css" />
- <link rel="stylesheet" type="text/css" href="../../../_static/default.css" />
- <link rel="stylesheet" type="text/css" href="../../../_static/graphviz.css" />
- <link rel="stylesheet" type="text/css" href="../../../_static/plot_directive.css" />
- <link rel="stylesheet" type="text/css" href="https://live.sympy.org/static/live-core.css" />
- <link rel="stylesheet" type="text/css" href="https://live.sympy.org/static/live-autocomplete.css" />
- <link rel="stylesheet" type="text/css" href="https://live.sympy.org/static/live-sphinx.css" />
-
- <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
- <script src="../../../_static/jquery.js"></script>
- <script src="../../../_static/underscore.js"></script>
- <script src="../../../_static/doctools.js"></script>
- <script src="https://live.sympy.org/static/utilities.js"></script>
- <script src="https://live.sympy.org/static/external/classy.js"></script>
- <script src="https://live.sympy.org/static/live-core.js"></script>
- <script src="https://live.sympy.org/static/live-autocomplete.js"></script>
- <script src="https://live.sympy.org/static/live-sphinx.js"></script>
-
- <link rel="shortcut icon" href="../../../_static/sympy-notailtext-favicon.ico"/>
- <link href="https://docs.sympy.org/latest/modules/physics/units/prefixes.html" rel="canonical" />
-
- <link rel="index" title="Index" href="../../../genindex.html" />
- <link rel="search" title="Search" href="../../../search.html" />
- <link rel="next" title="Units and unit systems" href="unitsystem.html" />
- <link rel="prev" title="Dimensions and dimension systems" href="dimensions.html" />
- </head><body>
- <div class="related" role="navigation" aria-label="related navigation">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../../../genindex.html" title="General Index"
- accesskey="I">index</a></li>
- <li class="right" >
- <a href="../../../py-modindex.html" title="Python Module Index"
- >modules</a> |</li>
- <li class="right" >
- <a href="unitsystem.html" title="Units and unit systems"
- accesskey="N">next</a> |</li>
- <li class="right" >
- <a href="dimensions.html" title="Dimensions and dimension systems"
- accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../../../index.html">SymPy 1.10.1 documentation</a> »</li>
- <li class="nav-item nav-item-1"><a href="../../../reference/index.html" >Reference Documentation</a> »</li>
- <li class="nav-item nav-item-2"><a href="../../../reference/public/physics/index.html" >Physics</a> »</li>
- <li class="nav-item nav-item-3"><a href="index.html" accesskey="U">Unit systems</a> »</li>
- <li class="nav-item nav-item-this"><a href="">Unit prefixes</a></li>
- </ul>
- </div>
-
- <div class="document">
- <div class="documentwrapper">
- <div class="bodywrapper">
- <div class="body" role="main">
-
- <section id="module-sympy.physics.units.prefixes">
- <span id="unit-prefixes"></span><h1>Unit prefixes<a class="headerlink" href="#module-sympy.physics.units.prefixes" title="Permalink to this headline">¶</a></h1>
- <p>Module defining unit prefixe class and some constants.</p>
- <p>Constant dict for SI and binary prefixes are defined as PREFIXES and
- BIN_PREFIXES.</p>
- <dl class="py class">
- <dt class="sig sig-object py" id="sympy.physics.units.prefixes.Prefix">
- <em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">sympy.physics.units.prefixes.</span></span><span class="sig-name descname"><span class="pre">Prefix</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">abbrev</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">exponent</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">base</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">10</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/sympy/sympy/blob/77f1d79c705da5e9b3dee456a14b1b4e92dd620c/sympy/physics/units/prefixes.py#L11-L114"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#sympy.physics.units.prefixes.Prefix" title="Permalink to this definition">¶</a></dt>
- <dd><p>This class represent prefixes, with their name, symbol and factor.</p>
- <p>Prefixes are used to create derived units from a given unit. They should
- always be encapsulated into units.</p>
- <p>The factor is constructed from a base (default is 10) to some power, and
- it gives the total multiple or fraction. For example the kilometer km
- is constructed from the meter (factor 1) and the kilo (10 to the power 3,
- i.e. 1000). The base can be changed to allow e.g. binary prefixes.</p>
- <p>A prefix multiplied by something will always return the product of this
- other object times the factor, except if the other object:</p>
- <ul class="simple">
- <li><p>is a prefix and they can be combined into a new prefix;</p></li>
- <li><p>defines multiplication with prefixes (which is the case for the Unit
- class).</p></li>
- </ul>
- </dd></dl>
-
- </section>
-
-
- <div class="clearer"></div>
- </div>
- </div>
- </div>
- <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
- <div class="sphinxsidebarwrapper">
- <p class="logo"><a href="../../../index.html">
- <img class="logo" src="../../../_static/sympylogo.png" alt="Logo"/>
- </a></p>
- <div>
- <h4>Previous topic</h4>
- <p class="topless"><a href="dimensions.html"
- title="previous chapter">Dimensions and dimension systems</a></p>
- </div>
- <div>
- <h4>Next topic</h4>
- <p class="topless"><a href="unitsystem.html"
- title="next chapter">Units and unit systems</a></p>
- </div>
- <div role="note" aria-label="source link">
- <h3>This Page</h3>
- <ul class="this-page-menu">
- <li><a href="../../../_sources/modules/physics/units/prefixes.rst.txt"
- rel="nofollow">Show Source</a></li>
- </ul>
- </div>
- <div id="searchbox" style="display: none" role="search">
- <h3 id="searchlabel">Quick search</h3>
- <div class="searchformwrapper">
- <form class="search" action="../../../search.html" method="get">
- <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
- <input type="submit" value="Go" />
- </form>
- </div>
- </div>
- <script>$('#searchbox').show(0);</script>
- </div>
- </div>
- <div class="clearer"></div>
- </div>
- <div class="related" role="navigation" aria-label="related navigation">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../../../genindex.html" title="General Index"
- >index</a></li>
- <li class="right" >
- <a href="../../../py-modindex.html" title="Python Module Index"
- >modules</a> |</li>
- <li class="right" >
- <a href="unitsystem.html" title="Units and unit systems"
- >next</a> |</li>
- <li class="right" >
- <a href="dimensions.html" title="Dimensions and dimension systems"
- >previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../../../index.html">SymPy 1.10.1 documentation</a> »</li>
- <li class="nav-item nav-item-1"><a href="../../../reference/index.html" >Reference Documentation</a> »</li>
- <li class="nav-item nav-item-2"><a href="../../../reference/public/physics/index.html" >Physics</a> »</li>
- <li class="nav-item nav-item-3"><a href="index.html" >Unit systems</a> »</li>
- <li class="nav-item nav-item-this"><a href="">Unit prefixes</a></li>
- </ul>
- </div>
- <div class="footer" role="contentinfo">
- © Copyright 2022 SymPy Development Team.
- Last updated on Mar 19, 2022.
- Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.4.0.
- </div>
- </body>
- </html>