01:36 -!- Prax01D(n=Prax01D@149.99.96.239) has joined #maxima 02:11 pavon: Exploded in what way? What were you trying to do? 07:41 -!- Prax01D(n=Prax01D@tor58-5-76-235.dynamic.rogerstelecom.net) has joined #maxima 08:40 -!- gabkdlly(n=gabriel@dslb-088-073-134-185.pools.arcor-ip.net) has joined #maxima 08:42 -!- paoleela|w(i=zg95uzqz@gateway/web/cgi-irc/irc.net/x-7b5a431c8aec2cbc) has joined #maxima 09:12 I am trying to teach myself Maxima programming. As an exercise, I am trying to implement the Gauss algorithm for solving a system of linear equations. Here is what I have so far: http://paste.ubuntu-nl.org/5882/ 09:12 obviously, as seen in the output, my code does not work 09:15 I just noticed, that my third and fourth for loops are not necessary, since I don't have to rebuild the entire matrix just to change one row, I could just do "a[row]:(a[row]-l*a[col])" Still, it would be nice to know why my code does not work. 09:18 for example, why don't rows get added to stackermat ? 10:44 -!- JeeBee(n=JeeBee@dutiih.st.ewi.tudelft.nl) has joined #maxima 12:36 -!- HaraldG(n=rldprog@chello080108070152.13.11.univie.teleweb.at) has joined #maxima 12:53 gabkdlly: I'm just reading through your paste. Your code is somewhat difficult to comprehend for a mind used to maxima. 12:53 Do you still need help? 12:54 One thing I can tell you right now: You should learn something about functional programming. 12:54 E.g. The function 'addrow' doesn't have side effects. 12:55 Try some trivial example like: 12:55 M:matrix([a,b],[c,d]); 12:55 addrow(M, [e, f]); 12:56 M; 12:56 to understand what that means. 12:57 ok, thanks, I will try that now 12:59 interesting 13:00 but doing M:addrow(M,[e,f]); does what I had expected addrow to do. Good to know. 13:02 Glad to hear. Actually when debugging code or trying to get help, it's always helpful to look an minimal examples of the problem. 13:04 OK, I will keep that in mind. 13:08 Do you have a recommendation as to where I can read well written .mac or .mc files? 13:14 Not sure. There are some in maxima's share directory, but I never looked much at them. 13:15 Myself prefers to write code pretty much the same as I would enter it onto the prompt. But that is more or less a personal style. 13:16 Maxima makes it easy to do that, though. Just ad a block statement or something to protect your local variables and you are done. 13:19 Your code looks like you are more used to procedural languages like basic or pascal. I think you 'll find out that functional code usually is much smaller if written well. Not so sure how to arrive there though. I learn maxima and lisp in parallel. I think that is a goog strategy, because either helps you to understand the other better. 13:20 neat, thanks for the tip. 13:21 I have done a little bit of programming in Octave and Python. I did a little bit of Basic years ago. 13:22 I stilll have not gotten around to delving into the object-orientation aspects of Python, though 13:23 I see. Well I have to leave now, but don't hesitate to continue talking. I'll come back and read the logs (unless the server goes down again). 13:40 -!- Prax01D(n=Prax01D@tor58-7-83-7.dynamic.rogerstelecom.net) has joined #maxima 14:46 -!- rtoy_(n=chatzill@user-0c8hpk0.cable.mindspring.com) has joined #maxima 14:52 -!- paoleela|w(i=jvxdwle3@gateway/web/cgi-irc/irc.net/x-4da88913a43fc057) has joined #maxima 19:44 -!- Prax01D(n=Prax01D@149.99.86.135) has joined #maxima 21:10 -!- gabkdll1(n=gabriel@dslb-088-073-142-190.pools.arcor-ip.net) has joined #maxima