Is there a function which i can delete a specific row or column of a matrix???
I mean, if you have a Matrix 3 x 3, and you want to eliminate the row 2 and the column 1, to make it 2 x 2.
Someone knows is it exist ?????
Functions?
Started by
Colombia
, Oct 19 2007 11:09 PM
7 replies to this topic
#1
Posted 19 October 2007 - 11:09 PM
#2 Guest_Guest_vanhoa_*_*
Posted 20 October 2007 - 05:32 AM
You should use
Delete a row:
Delete a row:
define delRMath(m,n)=piecewise(n<2 or n>rowDim(m)-1,piecewise(n=1,subMat(m,2,1),piecewise(n=rowDim(m),subMat(m,1,1,piecewise(n>1,n-1,n,n)),subMat(m,1,1,n))),trn(augment(trn(subMat(m,1,1,piecewise(n<2,1,n-1,1),colDim(m))),trn(subMat(m,piecewise(n<rowDim(m),n+1,1,1),1,rowDim(m),colDim(m))))))
#3
Posted 20 October 2007 - 11:26 PM
Thanks!!!
However i already made it on basic as program but i can?t do it as function. As function it is impossible on CP 300 because just allow one line.
The program work like this (on main)
Remove(Matrix,row,column)
and it will print the new matrix without the row and column selected.
However i already made it on basic as program but i can?t do it as function. As function it is impossible on CP 300 because just allow one line.
The program work like this (on main)
Remove(Matrix,row,column)
and it will print the new matrix without the row and column selected.
#4 Guest_Guest_vanhoa_*_*
Posted 21 October 2007 - 05:52 AM
define mDelCol(m,n)=piecewise(n<2 or n>colDim(m)-1,piecewise(n=1,subMat(m,1,2),piecewise(n=colDim(m),subMat(m,1,1,rowDim(m),piecewise(n>1,n-1,n,n)),subMat(m,1,1,rowDim(m),n))),augment(subMat(m,1,1,rowDim(m),piecewise(n<2,1,n-1,1)),subMat(m,1,piecewise(n<rowDim(m),n+1,1,1),rowDim(m),colDim(m)))) define mDelRow(m,n)=piecewise(n<2 or n>rowDim(m)-1,piecewise(n=1,subMat(m,2,1),piecewise(n=rowDim(m),subMat(m,1,1,piecewise(n>1,n-1,n,n)),subMat(m,1,1,n))),trn(augment(trn(subMat(m,1,1,piecewise(n<2,1,n-1,1),colDim(m))),trn(subMat(m,piecewise(n<rowDim(m),n+1,1,1),1,rowDim(m),colDim(m)))))) define mDelRC(m,r,c)=mDelRow(mDelCol(m,c),r)
#5
Posted 22 October 2007 - 06:26 PM
If it runs quite slowly (because using piecewises is damn slow), try using this program to convert your programs into functions.
http://www.classpad....hp?id=229&cat=3
(No you can't do awesome stuff with that, but it's still useful when messing with algorithms that involve multiple steps and conditions)
http://www.classpad....hp?id=229&cat=3
(No you can't do awesome stuff with that, but it's still useful when messing with algorithms that involve multiple steps and conditions)
#6
Posted 26 October 2007 - 04:50 PM
Thank Killburn the PRGM convert it is good, but i hope the author upgrade it, because i can not manipulate matrix or list with this program. And if I want to reduce a matrix I need to manipulate matrix.
La otra opci?n es que la casio en vez de estar sacando al mercado la misma calculadora con un nuevo nombre, realmente se dedique a llevar todas las aplicaciones funcionables en un 100%. Existen demasiadas sugerencias de como a los usuarios le gustaria optimizar la casio ClassPad 300 o 300 plus.
The other option is that casio work on really upgrade the CP300 with all the suggestion the we post on here or another web page, instead to launch the same calculator with different name.
La otra opci?n es que la casio en vez de estar sacando al mercado la misma calculadora con un nuevo nombre, realmente se dedique a llevar todas las aplicaciones funcionables en un 100%. Existen demasiadas sugerencias de como a los usuarios le gustaria optimizar la casio ClassPad 300 o 300 plus.
The other option is that casio work on really upgrade the CP300 with all the suggestion the we post on here or another web page, instead to launch the same calculator with different name.
#7
Posted 30 October 2007 - 09:01 AM
But... I am the author.
And unfortunately, I can't upgrade it. This programs just changes the type of a PRGM into a FUNC. So if you can't manipulate lists or matrices, it comes from the system. And I can't change the system.
And unfortunately, I can't upgrade it. This programs just changes the type of a PRGM into a FUNC. So if you can't manipulate lists or matrices, it comes from the system. And I can't change the system.
#8
Posted 24 November 2007 - 03:43 AM
Kilburn
I can not uses the functions on a program, i mean i convert a program into function and then i uses that function into another program but basic show me an error. "Wrong Argument Type".
The function works very well on the main, but .........
I can not uses the functions on a program, i mean i convert a program into function and then i uses that function into another program but basic show me an error. "Wrong Argument Type".
The function works very well on the main, but .........
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users