Jump to content
Science Forums

Heisenberg Uncertainty Principle in MATLAB


LR237787

Recommended Posts

On 10/13/2023 at 3:06 AM, LR237787 said:

Hi all, I'm new to this forum and to MATLAB, but I would like to write some code that justifies the Heisenberg Uncertainty Principle. Has this been done before? If so, where can I find the code, or how can I write it myself?

Thanks!

Of course, this has already been done.

Just select the option to display the math as MathML Code.

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">

  <mfrac>

    <mn>1</mn>

    <mn>2</mn>

  </mfrac>

  <mo fence="false" stretchy="false">&#x2016;<!-- --></mo>

  <mi>f</mi>

  <msubsup>

    <mo fence="false" stretchy="false">&#x2016;<!-- --></mo>

    <mn>2</mn>

    <mn>2</mn>

  </msubsup>

  <mo>&#x2264;<!-- ≤ --></mo>

  <msup>

    <mrow>

      <mo>(</mo>

      <msub>

        <mo>&#x222B;<!-- ∫ --></mo>

        <mrow class="MJX-TeXAtom-ORD">

          <mrow class="MJX-TeXAtom-ORD">

            <mi mathvariant="double-struck">R</mi>

          </mrow>

        </mrow>

      </msub>

      <mo stretchy="false">(</mo>

      <mi>x</mi>

      <mo>&#x2212;<!-- − --></mo>

      <mi>a</mi>

      <msup>

        <mo stretchy="false">)</mo>

        <mn>2</mn>

      </msup>

      <mrow class="MJX-TeXAtom-ORD">

        <mo stretchy="false">|</mo>

      </mrow>

      <mi>f</mi>

      <mo stretchy="false">(</mo>

      <mi>x</mi>

      <mo stretchy="false">)</mo>

      <msup>

        <mrow class="MJX-TeXAtom-ORD">

          <mo stretchy="false">|</mo>

        </mrow>

        <mn>2</mn>

      </msup>

      <mi>d</mi>

      <mi>x</mi>

      <mo>)</mo>

    </mrow>

    <mfrac>

      <mn>1</mn>

      <mn>2</mn>

    </mfrac>

  </msup>

  <msup>

    <mrow>

      <mo>(</mo>

      <msub>

        <mo>&#x222B;<!-- ∫ --></mo>

        <mrow class="MJX-TeXAtom-ORD">

          <mrow class="MJX-TeXAtom-ORD">

            <mi mathvariant="double-struck">R</mi>

          </mrow>

        </mrow>

      </msub>

      <mo stretchy="false">(</mo>

      <mi>&#x03BE;<!-- ξ --></mi>

      <mo>&#x2212;<!-- − --></mo>

      <mi>b</mi>

      <msup>

        <mo stretchy="false">)</mo>

        <mn>2</mn>

      </msup>

      <mrow class="MJX-TeXAtom-ORD">

        <mo stretchy="false">|</mo>

      </mrow>

      <mrow class="MJX-TeXAtom-ORD">

        <mover>

          <mi>f</mi>

          <mo stretchy="false">&#x005E;<!-- ^ --></mo>

        </mover>

      </mrow>

      <mo stretchy="false">(</mo>

      <mi>&#x03BE;<!-- ξ --></mi>

      <mo stretchy="false">)</mo>

      <msup>

        <mrow class="MJX-TeXAtom-ORD">

          <mo stretchy="false">|</mo>

        </mrow>

        <mn>2</mn>

      </msup>

      <mi>d</mi>

      <mi>&#x03BE;<!-- ξ --></mi>

      <mo>)</mo>

    </mrow>

    <mfrac>

      <mn>1</mn>

      <mn>2</mn>

    </mfrac>

  </msup>

  <mo>.</mo>

</math>

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...