ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 19 Jul 2017 18:10:12 +0200complex normhttps://ask.sagemath.org/question/38289/complex-norm/As a newbie, I must be missing something, but here is the question:
With this setup:
var('a', domain=CC)
a.norm()
a.norm().simplify()
The last line displays as a^2, but should be |a|^2 .
What am I missing?Mon, 17 Jul 2017 22:33:41 +0200https://ask.sagemath.org/question/38289/complex-norm/Comment by vdelecroix for <p>As a newbie, I must be missing something, but here is the question:</p>
<p>With this setup:</p>
<pre><code>var('a', domain=CC)
a.norm()
a.norm().simplify()
</code></pre>
<p>The last line displays as a^2, but should be |a|^2 .</p>
<p>What am I missing?</p>
https://ask.sagemath.org/question/38289/complex-norm/?comment=38297#post-id-38297Which Sage version are you using? For the two lines I obtain the same answer `a*conjugate(a)`.Tue, 18 Jul 2017 09:39:12 +0200https://ask.sagemath.org/question/38289/complex-norm/?comment=38297#post-id-38297Comment by tmonteil for <p>As a newbie, I must be missing something, but here is the question:</p>
<p>With this setup:</p>
<pre><code>var('a', domain=CC)
a.norm()
a.norm().simplify()
</code></pre>
<p>The last line displays as a^2, but should be |a|^2 .</p>
<p>What am I missing?</p>
https://ask.sagemath.org/question/38289/complex-norm/?comment=38315#post-id-38315I can not reproduce this either on 7.6 nor 8.0rc2, though i can reproduce on `5.12`. So, you just have to update your version of Sage.Wed, 19 Jul 2017 00:21:09 +0200https://ask.sagemath.org/question/38289/complex-norm/?comment=38315#post-id-38315Answer by normvcr for <p>As a newbie, I must be missing something, but here is the question:</p>
<p>With this setup:</p>
<pre><code>var('a', domain=CC)
a.norm()
a.norm().simplify()
</code></pre>
<p>The last line displays as a^2, but should be |a|^2 .</p>
<p>What am I missing?</p>
https://ask.sagemath.org/question/38289/complex-norm/?answer=38316#post-id-38316 Am using
SageMath Version 6.8, Release Date: 2015-07-26
on Fedora 24, x86
Seems I am 1.5 years behind (although up-to-date as a system package).
Will download & build sage-7.5.1-Fedora_24-x86_64.tar.bz2
Thanks for the feedback.Wed, 19 Jul 2017 00:32:09 +0200https://ask.sagemath.org/question/38289/complex-norm/?answer=38316#post-id-38316Comment by normvcr for <p>Am using</p>
<p>SageMath Version 6.8, Release Date: 2015-07-26
on Fedora 24, x86</p>
<p>Seems I am 1.5 years behind (although up-to-date as a system package).</p>
<p>Will download & build sage-7.5.1-Fedora_24-x86_64.tar.bz2</p>
<p>Thanks for the feedback.</p>
https://ask.sagemath.org/question/38289/complex-norm/?comment=38330#post-id-38330I downloaded and built
SageMath version 7.6, Release Date: 2017-03-25
Working in notebook() with typeset checked, I now get the correct value: a a_bar . How to get |a|^2 ?Wed, 19 Jul 2017 18:10:12 +0200https://ask.sagemath.org/question/38289/complex-norm/?comment=38330#post-id-38330