info() methods for transcendental functions
Dear Colleagues, I am proposing a small patch which provides some elementary info() methods to GiNaC predefined transcendental functions. Only easy answers are sought, which can be decided on info tests of the functions arguments. From such coarse viewpoint functions are grouped into several classes and the respective routines can be shared. Best wishes, Vladimir -- Vladimir V. Kisil http://www.maths.leeds.ac.uk/~kisilv/ Book: Geometry of Mobius Maps https://doi.org/10.1142/p835 Soft: Geometry of cycles http://moebinv.sourceforge.net/ Jupyter notebooks: https://github.com/vvkisil?tab=repositories
Dear Vladimir, On 9/3/22 22:59, Vladimir V. Kisil wrote:
I am proposing a small patch which provides some elementary info() methods to GiNaC predefined transcendental functions. Only easy answers are sought, which can be decided on info tests of the functions arguments. From such coarse viewpoint functions are grouped into several classes and the respective routines can be shared.
Thanks for the patch; the logic is good. But we should all heed compiler warnings! And so it turns out that the patch contains a really interesting typo: 'deafult' instead of 'default'. This compiles: it's just a label due to the colon. Fixing it makes GCC shut up the warning "control reaches end of non-void function". (I first thought GCC is overly grouchy. I've never seen such a bug before.) -richy. -- Richard B. Kreckel <https://in.terlu.de/~kreckel/>
On Sat, 10 Sep 2022 00:54:16 +0200, "Richard B. Kreckel" <kreckel@in.terlu.de> said:
RK> Dear Vladimir, On 9/3/22 22:59, Vladimir V. Kisil wrote: >> I am proposing a small patch which provides some elementary >> info() methods to GiNaC predefined transcendental functions. Only >> easy answers are sought, which can be decided on info tests of >> the functions arguments. From such coarse viewpoint functions are >> grouped into several classes and the respective routines can be >> shared. RK> Thanks for the patch; the logic is good. RK> But we should all heed compiler warnings! You are right, Richard. It is good that you noted and fixed the spurious typo, but I shall review patches more careful before submission. -- Vladimir V. Kisil http://www.maths.leeds.ac.uk/~kisilv/ Book: Geometry of Mobius Maps https://doi.org/10.1142/p835 Soft: Geometry of cycles http://moebinv.sourceforge.net/ Jupyter notebooks: https://github.com/vvkisil?tab=repositories RK> And so it turns out RK> that the patch contains a really interesting typo: 'deafult' RK> instead of 'default'. This compiles: it's just a label due to RK> the colon. Fixing it makes GCC shut up the warning "control RK> reaches end of non-void function". (I first thought GCC is RK> overly grouchy. I've never seen such a bug before.) RK> -richy. -- Richard B. Kreckel
participants (2)
-
Richard B. Kreckel
-
Vladimir V. Kisil