Post Reply 
image and matrix editor
06-01-2016, 09:24 PM (This post was last modified: 06-01-2016 09:48 PM by salvomic.)
Post: #1
image and matrix editor
hi,
I need to create this matrix [[5,-10,15],[1,-2,3],[⅓,-⅔,1]] and then get its image.
If I create it manually in CAS I get image([[5,-10,15],[1,-2,3],[⅓,-⅔,1]]) -> [15 3 1]
But if I create the matrix in the editor (M2) I get [[5,-10,15],[1,-2,3],[0.33333...,-0.66666...,1]], and then image(M2) -> [1. 0.2 6.666666666667E-2]

I'm looking for a way to get the symbolic fractions (⅓ and -⅔) in the editor (without approximation) and the correct (normal, not divided and approximated) result for image().
Any help?
It would be nice to use the key "a b/c" for that purpose (and not for approximation), like we can do in Home...

thank you
Salvo

EDIT: for now I'm using qpimat() to get the wanted result (as normally QPI doesn't run with matrices):
Code:

#cas
qpimat(m):=
BEGIN
local s:=dim(m);
m:=mat2list(m);
m:=QPI(m)
m:=list2mat(m,s(2));
return m;
END;
#end
image(qpimat(M2)) -> [15 3 1]

∫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
image and matrix editor - salvomic - 06-01-2016 09:24 PM
RE: image and matrix editor - Arno K - 06-08-2016, 10:30 PM



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