This is in a part of sage that I never use so I am not qualified to comment on what is best usage (and I don't really care:), but changing the default behaviour of a function or method should not really be done without some form of depreciation warning, so you probably should look at `DeprecatedFunctionAlias` in the reference manual.
Secondly, using `besselexpand=True` will be better than using a string. Andrew On Tuesday, 10 May 2016 14:48:01 UTC+10, saad khalid wrote: > > So, I've set the besselexpand option to true in the init_code of > maxima_lib. I was thinking, however, that it would be a good idea to have > an easy way to turn besselexpand off, so that those who Want the bessel > version of the output can easily get it. This is where I'm running into > some issues, I'm not really sure what the best course of action would be. > First, I was thinking that I could try to edit the code for sum in > calculus.py and maxima_lib.py. I was thinking that, if I added another > input variable to symbolic_sum in calculus.py, something like > besselexpand='true'. So, the function would look like > symbolic_sum(expression, v, a, b, algorithm='maxima',besselexpand='true') > > Then, the value for besselexpand could be fed into the call to > maxima.sr_sum, and the code could be edited there to let it change the > init.code to set besselexpand to false. Ideally, I could add code to > symbolic_sum in calculus.py that lets me change the init.code from there, > but I don't think that's possible(or rather, I don't know of how to do > that). Even with this, however, I can't figure out how to let the function > sr_sum change the init.code to set besselexpand to false from within the > function. > > Another issue is whether this would even be useful at all, to add this > option within sum. I'm assuming there are other situations in which the > bessel function appears as output apart from just the sum function? If > that's the case, then what I really need is a easy global way to change the > setting on besselexpand, and then a good place to document it. I'm new to > this, so I would really appreciate everyones thoughts. > -- 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.