Ask Your Question
0

complex norm

asked 2017-07-17 15:35:32 -0500

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?

edit retag flag offensive close merge delete

Comments

Which Sage version are you using? For the two lines I obtain the same answer a*conjugate(a).

vdelecroix gravatar imagevdelecroix ( 2017-07-18 02:39:12 -0500 )edit

I 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.

tmonteil gravatar imagetmonteil ( 2017-07-18 17:21:09 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-07-18 17:32:09 -0500

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.

edit flag offensive delete link more

Comments

I 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 ?

normvcr gravatar imagenormvcr ( 2017-07-19 11:10:12 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-07-17 15:33:41 -0500

Seen: 68 times

Last updated: Jul 18