Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: complex conjugation
PostPosted: Thu Aug 11, 2005 5:31 pm 
I am still using Singular 1-2-3
I don't know how to compute the real part
of an element in Q[i], i^2=-1.
The manual says nothing about complex conjugation.
I am aware that Singular 2 has complex numbers,
but do I really have to install it just to
use complex conjugation (on the coefficients
of a polynomial ring)?

email: djokovic@uwaterloo.ca
Posted in old Singular Forum on: 2002-04-27 18:32:35+02


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Wed Sep 21, 2005 8:51 pm 
> I am still using Singular 1-2-3
> I don't know how to compute the real part
> of an element in Q[i], i^2=-1.
> The manual says nothing about complex conjugation.
> I am aware that Singular 2 has complex numbers,
> but do I really have to install it just to
> use complex conjugation (on the coefficients
> of a polynomial ring)?

Probably there is no way to do it with Singular-1-2-3,
since working with "numbers" is not very easy.
Anyway you can define some procedure like thie above
one (I think it should work even with that version).
I assume you are in a polynomial ring of char=0
and minpoly=i^2+1.

proc real_part (number a)
{
def BR=basering;
string rea=string(a);
ring auxR=0,i,lp;
execute("poly Rea="+rea+";");
Rea=subst(Rea,i,0);
rea=string(Rea);
setring BR;
kill(auxR);
execute("number REa="+rea+";");
return(REa);
}


Good luck.


email: ignfar@eis.uva.es
Posted in old Singular Forum on: 2002-04-29 11:29:38+02


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 10:57 am
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group