I noticed that when I save a session with
sage: save_session('sessionname')
and open it at a later time with
sage: load_session('sessionname')
None of the python functions I've created are restored and I have to
load them individually. I haven't been able to locate anything about
this in the t
Oop got it working. Thanks for the references. Haven't tried notebook
yet save to create an admin password. I never liked zork (adventure)
this is like that but I managed this time. Now I just have to discover
how to control the argument types, Tableau matrix in QQ, pr and pc
integers. Thanks.
de
OK here's what I managed to type in the very unforgiving shell
sage: def nx(Tableau,pr,pc):
: newtab=Tableau
: nr=newtab.nrows()
: nc=newtab.ncols()
: if not pr in range(nr):
: print('invalid pivot row in function nx')
: return 'invalid pivo
I'm coming from writing Visual Basic code and am clueless about
python. I typed this into KWrite and saved it with .sage extension. I
used tab to indent and I am used to closing if then with an endif
statement, likewise I'm used to ending an for next statement with next
i etc.
def nx(Tableau,int
Ah! perfect. Thanks Jason.
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.c
I've just started using SAGE and my first question is where I have an
integer matrix, 9x22 in this case, I get the following output
sage: ALPHA*ALPHA.transpose()
[1 0 0 0 0 0 0 0 0]
[0 1 0 0 0 0 0 0 0]
[0 0 1 0 0 0 0 0 0]
[0 0 0 1 0 0 0 0 0]
[0 0 0 0 1 0 0 0 0]
[0 0 0 0 0 1 0 0 0]
[0 0 0 0 0 0 1