Post Reply 
Exact items for a matrix from a program
06-08-2015, 07:43 AM
Post: #3
RE: Exact items for a matrix from a program
(06-08-2015 06:56 AM)Joe Horn Wrote:  This isn't exactly what you seek, but the STRING function has an option to convert decimals into fractions. For example:

STRING([[.1,.2],[.3,.4]],8) --> "[[1/10,1/5],[3/10,2/5]]"

The output is ugly, not "Textbook" style, but at least the fractions are there. If you want to present the result in a pretty fashion, you'd have to loop through the matrix and STRING each entry separately, I suppose.

thank you Joe, this works, but I want to export numbers to be treated after the calculation...
For example, ref() gives exact result, but exported from inside my program it doesn't export fractions but reals... (also using exact() command)...

Salvo

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Exact items for a matrix from a program - salvomic - 06-08-2015 07:43 AM



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