I am trying maplemint for first time, but some of the messages it generates do not seem to make sense to me and they all seem to be false alarms.
And not sure how make maplemint generate true warnings to make it easier to filter the real problems from the not real ones. For example, I made some module to try
#private stuff here
f:= x -> x^2:
A := int(f(x)*sin(n*x),x=0..Pi) assuming n::integer;
#public stuff here
These local variables were never used: x
These local variables were used but never assigned a value: n
These local variables were assigned a value, but otherwise unused: f
Well, "x" is clearly used. It is the integration variable? And I can't assign value to "n", it is just a symbol used in the symbolic integration and assumed to be integer.
It also says "f" is not used. But "f" is used in definition of "A" inside the integrand.
So all these messages are not really needed. Is there a way to make maplemint not generate these? I do not see how I could change the code to remove these messages. Is something wrong with my code above?
Code works as expected
my_module:-foo(); gives (-Pi^2*(-1)^n*n^2+2*(-1)^n-2)/n^3
Here is another simpler example of where maplemint messages can't be removed no matter what.
and maplemint(foo) gives
These local variables were used but never assigned a value: x
These names were used as global names but were not declared: x
Here is another example where maplemint complains about option names for plot3 being undeclared
axes = none, projection=0.9,
These names were used as global names but were not declared:
axes, none, orientation, projection, scaling, unconstrained
These local variables were used but never assigned a value:
If one has to go each time through 100's of messages like these in order to find 1 or 2 real ones which indicate real problems, then using maplemint is not going to an effective way to find problems in code.