Read-only forum archive

complex numbers

complex numbers

peter · Thu Oct 23, 2008 3:00 pm

hi,

sorry for that simple question, but how can i write down complex numbers?

i tried:

ring r= complex, ... ;

ideal J = x-5-5i, ... ;

and then had an error as "i" was new to singular.

thx for ur help!

complex numbers

wienand · Mon Nov 03, 2008 9:46 am

You have to include a '*' between the imaginary unit 'i' and the number, i.e.

Code:
ideal J = x-5-5*i, ... ;