equation with complex number

116 views
Skip to first unread message

Jean-Patrick Pommier

unread,
Dec 9, 2011, 5:04:37 AM12/9/11
to sage...@googlegroups.com
Hi,
Is it possible to solve equation with complex variable such 1/z=1+i?

I try without success:

show(solve(1/z==i,z))
 which returns
 [] (-i waited).

I didn't succeed well with:
z/conjugate(z)=z which is z0=1

I try also:
z=1+i
abs(z)=sqrt(2)

but arg(z) gives  0.785398163397
How to get the symbolic value  pi/4?

Thank you
Jean-Patrick

David Joyner

unread,
Dec 9, 2011, 6:18:16 AM12/9/11
to sage...@googlegroups.com, SAGE support
This is a question for sage-support, which I am ccing.

> --
> You received this message because you are subscribed to the Google Groups
> "sage-edu" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sage-edu/-/I9Tv6zZKtg4J.
> To post to this group, send email to sage...@googlegroups.com.
> To unsubscribe from this group, send email to
> sage-edu+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sage-edu?hl=en.

Štěpán Starosta

unread,
Dec 9, 2011, 9:12:15 AM12/9/11
to sage-edu
Hi,

you need to tell sage to work with complex numbers. One way to do it:

var('z',domain=CC)
show(solve(1/z==i,z))

returns

[z=(-i)]

As for an argument of a complex number, I don't know. arg apparently
gives a numerical value, I don't know whether there is an algorithm to
do it symbolically for any complex number.

Stepan

On 9 pro, 11:04, Jean-Patrick Pommier <jeanpatrick.pomm...@gmail.com>
wrote:

Reply all
Reply to author
Forward
0 new messages