image and matrix editor - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: image and matrix editor (/thread-6336.html) |
image and matrix editor - salvomic - 06-01-2016 09:24 PM 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:
RE: image and matrix editor - Arno K - 06-08-2016 10:30 PM Hi Salvo, hi Han, when I today came across the task to solve a system of differential-equations, i.e. y'=A*y with some matrix A, which the prime happily solves with A stored in M1, one of the built-in matrices, I stumbled upon your program and clearly QPI by Han. The main reason for my search was that jordan(M1) delivered some weird looking results although I had only entered integers: M1 was [[-3,0,1],[-2,-2,2],[-1,0,-1]]. jordan(matrix direct) worked fine. As said above I looked for a solution of my problem, found your qpimat and the needed QPI but jordan(qpimat(M1)) still produced the same weird decimal result. So either your or Han's program seem to have to be partly rewritten to produce integers for inputs in integers. Arno RE: image and matrix editor - cyrille de brébisson - 06-09-2016 04:51 AM Hello, M0-M9 are home matrices and as such, they are floating point. So editing such matrices will not let you enter 1/2. However, you can create a CAS matrix (a:=[[1]] in cas), and then edit that matrix in the matrix editor (it bill apear at the bottom of the list, or you can do editmat(a)) and there you can enter 1/2. Cyrille |