Group Abstract Group Abstract

Message Boards Message Boards

1
|
7.2K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

An interesting property of AlgebraicNumber

Posted 11 years ago
POSTED BY: John Doty
2 Replies

FullSimplify works, but it is much slower:

Timing[mkAlgebraic[thing]]
(* {0.052406, Root[1 - 10 #1 + 5 #1^3 &, 2] + Sin[1]} *)
Timing[FullSimplify[Re[thing]] + FullSimplify[Im[thing]]]
(* {3.76156, Root[1 - 10 #1 + 5 #1^3 &, 2] + Sin[1]} *)
POSTED BY: John Doty

How about something like the following?

FullSimplify[Re[thing]]
% // N
FullSimplify[Im[thing]]

(* Root[1 - 10 #1 + 5 #1^3 &, 2] + Sin[1] *)

(* 0.941979 *)

(* 0 *)

POSTED BY: Gerard Kopcsay
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard