Re: Plotting module

2007-12-27 Thread Ondrej Certik
Hi, On Dec 27, 2007 6:12 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have been using sympy for some time now. Thank you guys for creating > such an awesome piece of software. Lately, I have been playing with > the plotting module and I have some suggestions... Awesome, we welcome all

Re: Source code issue

2007-12-27 Thread Kirill Smelkov
On Thu, Dec 27, 2007 at 11:25:11PM +0530, Goutham D L wrote: > The __call__ method for the core.basic.Basic class has 2 return statements > > *return Basic.Function(self[0])(*args) > print self, args > return Basic.Apply(self, *args) > > *Can someone explain whats going on here? Unfortunately i

Re: some thoughts on object oriented design in C

2007-12-27 Thread Pearu Peterson
On Dec 27, 8:20 pm, "Ondrej Certik" <[EMAIL PROTECTED]> wrote: > > And when one doesn't neet the whole machinery (it's probably an > overkill for our purposes), > one can just use structs with function pointers, as described in my > previous email. I think that even writing sympy in C/C++ is an o

Re: some thoughts on object oriented design in C

2007-12-27 Thread Ondrej Certik
On Dec 26, 2007 5:58 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > Hi, > > I was thinking a little bit how to code SymPy in C. I want to use OOP, > since that's what I am used to in Python. So C++ would be a natural > choice. > But then one notices that almost all robust programs are done in C, >

Source code issue

2007-12-27 Thread Goutham D L
The __call__ method for the core.basic.Basic class has 2 return statements *return Basic.Function(self[0])(*args) print self, args return Basic.Apply(self, *args) *Can someone explain whats going on here? Also what does the *cache_it_immutable *function do exactly? Goutham --~--~-~--~--