Le vendredi 12 avril 2019 22:06:34 UTC+2, David Roe a écrit :
>
> I realized that you may be just looking for the Python complex type. To
> get that you can do:
> sage: j = complex(i)
> sage: (3 + 4*j)^2
> (-7+24j)
>
The imaginary unit of Python's complex numbers displays
(and is input) as
I realized that you may be just looking for the Python complex type. To
get that you can do:
sage: j = complex(i)
sage: (3 + 4*j)^2
(-7+24j)
Here are some other options. The first involves using number field
arithmetic, so it may not be what you want (you can't use floating point
values in the
why not just use j, and tell sage that j^2=-1?
Depends on how much of Sage you
expect to understand this.
(the use of j is common in electrical engineering,
for those who have not encountered this before...)
RJF
On Friday, April 12, 2019 at 1:39:51 AM UTC-7, David Roe wrote:
>
> Is this what
Is this what you're looking for?
sage: z = ComplexNumber(1,2)
sage: z
1.00 + 2.00*I
sage: print z.str(istr='j')
1. + 2.*j
I don't think there's a global way to do this in Sage. I'm also not quite
sure which kind of complex number you're
Hello everybody,
Ín sage, how change complex number symbols:
i^2=-1, z=a+bi
Now I want
j^2=-1, z=a+bj
Thank you!
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to