
On basic:
[[1,2][3,4]] => Mat_A
6 => Mat_A[1,1]
PrintNatural Mat_A

Posted 13 April 2007 - 04:14 AM
Posted 13 April 2007 - 01:29 PM
how can i write this on Lua
:
On basic:
[[1,2][3,4]] => Mat_A
6 => Mat_A[1,1]
PrintNatural Mat_A
Thanks!!!!!!!!!!!!!!!
A={{1,2},{3,4}} A[1][1]=6 for i=1,#A do print(unpack(A[i])) end
Posted 13 April 2007 - 06:40 PM
Posted 23 April 2007 - 09:27 PM
Posted 23 April 2007 - 10:16 PM
Posted 24 April 2007 - 08:41 AM
Posted 24 April 2007 - 10:40 AM
Posted 24 November 2007 - 03:00 AM
A={{1,2},{3,4}} A[1][1]=6 for i=1,#A do print(unpack(A[i])) endwith a matrix 6 x 6 complex it show a desaster. The element of the same row continuo on the next line, it is confuse.
Posted 26 November 2007 - 10:28 PM
Posted 16 February 2008 - 04:57 PM
I would suggest you to try the UI package, there is a nice "mathedit" component that you might use to display mathematical expressions like matrices and CAS formulas
Posted 16 February 2008 - 08:53 PM
You can try something like this to display a matrix (or any other CAS expression):Orwell, I read the "uifunction.txt" but I could not find the function than make this possible.
I learned how to create a window (ui.windows{...}) and included some text editable or not (ui.textedit{..}) and other things, but what is the function that allow me to call the matrix?
Thanks!!!
require "ui" "cas" local win, me win = ui.window({name="Test", x=3, y=3, width=154, height=180}) me = ui.mathedit({x=0, y=0, width=152, parent=win}) me:setexpr(cas("[[1,2][3,4]]")) ui.button({text="Quit", x=122,y=79, parent=win, _clicked = function(self) ui.stop() end}) win:show(true) ui.start()
Posted 17 February 2008 - 01:43 AM
Posted 17 February 2008 - 06:46 PM
Posted 17 February 2008 - 09:12 PM
Posted 06 June 2013 - 04:11 AM
Posted 06 June 2013 - 07:04 AM
0 members, 1 guests, 0 anonymous users