Miscellaneous questions, suggestions
Posted: Sun Jul 09, 2006 6:53 pm
First a congrats to Lutz for a great new release and for listening so kindly to his audience. I had a few things to say but I didn't feel like creating several topics all at once. So here we go
1. Am I only the only one that feels that the "zero?" function should be balanced out with a "one?" function? I find that I test equality to 1 about as often as I do to 0. It is a small thing perhaps but I find that it balances out the binary nature of the numbers we deal with.
2. Lutz, do you intend to eventually add complex numbers to NewLISP or are you going to shuffle it off for people to write separate math libraries? Probably most of you have no need for them but anyone who does CAD work (as I do) would find them quite handy.
3. As an afterthought to the issue of complex numbers I was thinking about the sgn function. If we think of this function in a geometric rather than a numerical sense it adds some more possibilities to it. In its standard use of returning -1,0 or 1 we can think of this geometrically as testing the position of a point on the X-axis of a cartesian system. -1 means the point is on the negative side of the Y-axis, 0 on the Y-axis and so on. Now we could enlarge the scope of this function by allowing it to take 2D and 3D point lists. In the 2D case we imagine a line bisecting the 2nd and 4th quadrants of the cartesian system. In this case -1 is returned if the 2D point (or complex number) is on the side of the line that the negative quadrant is in, 0 is somewhere on the line and 1 is on the other side. In the 3D case we imagine a plane passing through the origin and passing perpendicular to the positive and negative octants of the 3D space. Again -1, 0 and 1 would tell you which side of the plane you are on. I have already written such an extension in my geometry library and have found it very handy.
4. It has been mentioned by someone else of the desire to start collaborative work on code libraries. Is there any chance of perhaps having a project wiki of some kind that we can post and modify material for all to see so that we don't have to have rings of emailing going on? I would like to work on both a math and geometry library but don't know the best way of doing this. I'm sure others would like to contribute too.
1. Am I only the only one that feels that the "zero?" function should be balanced out with a "one?" function? I find that I test equality to 1 about as often as I do to 0. It is a small thing perhaps but I find that it balances out the binary nature of the numbers we deal with.
2. Lutz, do you intend to eventually add complex numbers to NewLISP or are you going to shuffle it off for people to write separate math libraries? Probably most of you have no need for them but anyone who does CAD work (as I do) would find them quite handy.
3. As an afterthought to the issue of complex numbers I was thinking about the sgn function. If we think of this function in a geometric rather than a numerical sense it adds some more possibilities to it. In its standard use of returning -1,0 or 1 we can think of this geometrically as testing the position of a point on the X-axis of a cartesian system. -1 means the point is on the negative side of the Y-axis, 0 on the Y-axis and so on. Now we could enlarge the scope of this function by allowing it to take 2D and 3D point lists. In the 2D case we imagine a line bisecting the 2nd and 4th quadrants of the cartesian system. In this case -1 is returned if the 2D point (or complex number) is on the side of the line that the negative quadrant is in, 0 is somewhere on the line and 1 is on the other side. In the 3D case we imagine a plane passing through the origin and passing perpendicular to the positive and negative octants of the 3D space. Again -1, 0 and 1 would tell you which side of the plane you are on. I have already written such an extension in my geometry library and have found it very handy.
4. It has been mentioned by someone else of the desire to start collaborative work on code libraries. Is there any chance of perhaps having a project wiki of some kind that we can post and modify material for all to see so that we don't have to have rings of emailing going on? I would like to work on both a math and geometry library but don't know the best way of doing this. I'm sure others would like to contribute too.