Hi!

A colleague told me that when grading linear algebra exams (thus, when
he needs to input many matrices to find out where exactly the students
made miscalculations), he prefers to work with Mathematica.

The reason he gave: In Mathematica, matrices can be defined with a
graphical tool. Hence, one can input some entries, use arrow keys to
switch from entry to entry, and can insert (and delete?) rows or columns
on the fly.

I think it would be nice for SageMath to have such function, too. Both
in the notebook and on command line, actually.

I found on
https://stackoverflow.com/questions/18985260/gui-to-input-and-output-matrices
that one can use tkinter to create such a tool. But alas, even the first
line fails:

sage: import tkinter as tk
...
/home/king/Sage/git/sage/local/lib/python2.7/lib-tk/Tkinter.py in <module>()
     37     # Attempt to configure Tcl/Tk without requiring PATH
     38     import FixTk
---> 39 import _tkinter # If this fails your Python may not be configured for Tk
     40 tkinter = _tkinter # b/w compat for export
     41 TclError = _tkinter.TclError

ImportError: No module named _tkinter

I would imagine a function, say, easy_matrix, such that easy_matrix()
starts with an empty matrix (the ring given by the later inserted
entries), easy_matrix(R) specifies the ring R, easy_matrix(m,n) starts
with the specified number of rows and columns, and easy_matrix(M) allows
to interactively edit a previously defined matrix M.

I have no experience with the creation of graphical tools, but would
appreciate someone to step up and create it. I think it would be nice
for both casual and more experienced users.

Best regards,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to