Ask Your Question
0

complex norm

asked 2017-07-17 22:35:32 +0200

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 09:39:12 +0200 )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-19 00:21:09 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-07-19 00:32:09 +0200

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 18:10:12 +0200 )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 22:33:41 +0200

Seen: 366 times

Last updated: Jul 19 '17