Post Reply 
Existing CAS commands --> Prime discussion
11-29-2018, 01:47 AM
Post: #38
RE: Existing CAS commands --> Prime discussion
(11-28-2018 11:35 PM)compsystems Wrote:  The output value seems to vary according to the value of epsilon, but do not always yield the same value, therefore it is concluded that exact() and float2rational() are different and not synonymous commands

epsilon:=1E-12:; exact(0.324532453245); float2rational(0.324532453245) ↵ returns
"Done", 1094980201/3374023738, 295/909

But if you use epsilon:=5E-12, as suggested by Joe to get the same results as Home's fraction button, exact() provides the same result as float2rational(). The magnitude of epsilon controls how far the reduction is continued.

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Existing CAS commands --> Prime discussion - rprosperi - 11-29-2018 01:47 AM



User(s) browsing this thread: 3 Guest(s)