Ask Your Question
0

complex norm

asked 7 years ago

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?

Preview: (hide)

Comments

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

vdelecroix gravatar imagevdelecroix ( 7 years ago )

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 ( 7 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 7 years ago

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.

Preview: (hide)
link

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 ( 7 years ago )

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: 7 years ago

Seen: 446 times

Last updated: Jul 19 '17