Register to reply

AlgebraicNumber to simple number in Mathematica

Share this thread:
zplot
#1
Apr30-12, 10:31 AM
P: 17
Hello,

From some matrix operations I get "AlgebraicNumber[-4 I, {0, -(1/16)}]" as output.

I need to get i/4 and I don't know how. If I write "N[AlgebraicNumber[-4 I, {0, -(1/16)}]]",
I get 0. + 0.25 i but it is not what I want neither. I would like to get just i/4 as output.

Can anybody help?
Thank you in advance.
Phys.Org News Partner Science news on Phys.org
Hoverbike drone project for air transport takes off
Earlier Stone Age artifacts found in Northern Cape of South Africa
Study reveals new characteristics of complex oxide surfaces
Bill Simpson
#2
Apr30-12, 11:06 AM
P: 1,028
Quote Quote by zplot View Post
From some matrix operations I get "AlgebraicNumber[-4 I, {0, -(1/16)}]" as output.

I need to get i/4 and I don't know how.
That seems odd because this
http://reference.wolfram.com/mathema...aicNumber.html
under More Information says
"AlgebraicNumber objects representing integers or rational numbers are automatically reduced to explicit integer or rational form."
Perhaps that implies that complex are not automatically reduced to explicit form.

What do you get with Im[AlgebraicNumber[-4 I, {0, -(1/16)}]]

What do you get with Simplify[AlgebraicNumber[-4 I, {0, -(1/16)}]]
zplot
#3
Apr30-12, 11:19 AM
P: 17
Thank you Bill.

With
Im[AlgebraicNumber[-4 I, {0, -(1/16)}]]
I get
Im[AlgebraicNumber[-4 I, {0, -(1/16)}]]
and with
Simplify[AlgebraicNumber[-4 I, {0, -(1/16)}]]
I get
AlgebraicNumber[-4 I, {0, -(1/16)}]

so no solution yet.

Any other idea?

Thanks a lot.

Bill Simpson
#4
Apr30-12, 12:58 PM
P: 1,028
AlgebraicNumber to simple number in Mathematica

Unfortunately I can't test that for you at the moment and that severely restricts what I can find.

You might post it here
http://forums.wolfram.com/student-su...discussions/4/

This is very very odd and looks like a limitation that should not be there.
The URL I posted previously seemed like it said Im should have worked.
zplot
#5
Apr30-12, 01:00 PM
P: 17
Thank you


Register to reply

Related Discussions
Mathematica setting variable to be real number Math & Science Software 6
Table item number in Mathematica Math & Science Software 4
Mathematica: Number Generator Math & Science Software 1
Mathematica - help with a loop that would number the output files Math & Science Software 4
Mathematica, fitting an arbitrary number of parameters Math & Science Software 4