AlgebraicNumber to simple number in Mathematica

  • Context: Mathematica 
  • Thread starter Thread starter zplot
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary

Discussion Overview

The discussion revolves around converting an output from matrix operations in Mathematica, specifically an "AlgebraicNumber" representation, into a simpler form, namely i/4. Participants explore methods to achieve this conversion and express confusion over the behavior of the AlgebraicNumber function with complex numbers.

Discussion Character

  • Technical explanation, Debate/contested

Main Points Raised

  • One participant seeks to convert "AlgebraicNumber[-4 I, {0, -(1/16)}]" to i/4 and expresses uncertainty about how to do so.
  • Another participant notes that the Mathematica documentation suggests that AlgebraicNumber objects representing complex numbers may not be automatically reduced to simpler forms, unlike integers or rationals.
  • A participant reports that using Im[AlgebraicNumber[-4 I, {0, -(1/16)}]] returns the same AlgebraicNumber expression, indicating no simplification.
  • Another participant mentions that Simplify[AlgebraicNumber[-4 I, {0, -(1/16)}]] also does not yield a simpler form, furthering the confusion.
  • One participant suggests that the issue may be a limitation of the software and encourages posting on a different forum for further assistance.

Areas of Agreement / Disagreement

Participants express a shared confusion regarding the inability to simplify the AlgebraicNumber to the desired form, but no consensus is reached on a solution or the underlying cause of the issue.

Contextual Notes

Participants note that the behavior of the AlgebraicNumber function with complex numbers may differ from that with integers or rational numbers, but the exact limitations or reasons for this behavior remain unresolved.

zplot
Messages
17
Reaction score
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.
 
Physics news on Phys.org
zplot said:
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)}]]
 
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.
 
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 I am should have worked.
 
Thank you
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
8
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K