Post Reply 
Exact, approx...: QPI
06-10-2015, 05:25 AM (This post was last modified: 06-10-2015 05:26 AM by Joe Horn.)
Post: #2
RE: Exact, approx...: QPI
(06-09-2015 09:32 PM)salvomic Wrote:  hi,
testing a program I get 7.19999999996, so (in CAS) I hit approx/exact (a b/c) and I get ... 35999357551/4999910771 :-)
That in Home is simply 36/5.
Lucky there is QPI program (by Han).
It would be nice to have a better rationalization in the Prime by default also in CAS...
For now, a part of QPI, a tip is to insert the "strange long long number or fraction" in the command line, to pass into Home, convert into fraction and then pass again in CAS...
Ora am I missing something?

Salvo

Good news: you can control the accuracy of the "exact" function by setting the value of "epsilon" on page 2 of CAS Settings. By changing epsilon to something more granular than the default 1e-12 (try 1e-10, for example), you'll get what you're looking for.

You can also control the accuracy of the "exact" function from within a program, but it must be a CAS program, e.g. epsilon:=1e-10 (notice that it's epsilon, not Epsilon).

By the way, this ability to control the accuracy of the "exact" function by altering the value of epsilon in CAS, closely parallels the ability to control the accuracy of the [a b/c] button in Home by altering the display setting (e.g. Fixed 4). One of the biggest differences is that [a b/c] can only be adjusted by powers of 10, whereas epsilon can have any value between 1e-6 and 1e-15 (I don't think that range is documented anywhere).

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Exact, approx...: QPI - salvomic - 06-09-2015, 09:32 PM
RE: Exact, approx...: QPI - Joe Horn - 06-10-2015 05:25 AM
RE: Exact, approx...: QPI - salvomic - 06-10-2015, 06:25 AM



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