AlgebraicNumber to simple number in Mathematica

  • Mathematica
  • Thread starter zplot
  • Start date
  • #1
17
0
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.
 

Answers and Replies

  • #2
1,069
29
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/mathematica/ref/AlgebraicNumber.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)}]]
 
  • #3
17
0
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.
 
  • #4
1,069
29
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-support/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.
 
  • #5
17
0
Thank you
 

Related Threads on AlgebraicNumber to simple number in Mathematica

Replies
6
Views
3K
Replies
2
Views
3K
Replies
4
Views
401
Replies
4
Views
3K
Replies
1
Views
1K
Replies
2
Views
2K
Replies
3
Views
1K
Replies
6
Views
6K
Replies
20
Views
6K
Replies
11
Views
5K
Top