On Apr 11, 8:53 am, Nils Bruin <
bruin.n...@gmail.com> wrote:
> On Apr 10, 9:41 pm, rjf <
fate...@gmail.com> wrote:
>
> > Your speculation about random number generation may be relevant
> > somewhere,
> > but you are probably missing the point regarding constants of
> > integration.
>
> > integrate(sin(x)*cos(x),x)
> > returns -1/2*cos(x)^2.
>
> > but what if it returns 1/2*sin(x)^2 ?
>
> That just means you can have more fun with the randomization bit at
> the maxima side.
There is not much opportunity for purposeful randomization in looking
for an 'antiderivative'. If you are able to find one you don't just
randomly toss it out and look for another one, or just randomly add
a term whose derivative is zero. After all you can take an
antiderivative
like x^2 and add any function that does not depend on x to it.
>
> In actuality, if verifying that the output of your algorithm is valid
> is an open problem itself,
no, not an open problem, but most likely a recursively undecidable
problem (e.g. 'Turing equivalent').
you obviously haven't proved that your
> algorithm is correct (let alone the implementation), so perhaps you
> should do that first.
>
You underestimate the difficulty of proving that some
non-trivial algorithm is correct.
Besides which, incomplete or even incorrect algorithms can
produce correct answers. Sage is pretty much evidence of that!
Anyway if you want to prove anything done by computer, you would also
have to prove the
correctness of the compiler and machine implementation, as well as
guard against cosmic rays etc.
> For your integration algorithm, I'm pretty sure you would be able to
> tell from the implementation what kind of choices the algorithm should
> make so that you can bound the variation to a range within which
> equality (up to a constant) can be tested.
nope.
>
> Alternatively, you would probably have a guarantee that the system
> should be able to evaluate arbitrary order derivatives of the
> antiderivative returned, so you'd be able to check its series
> expansion is a constant to some high order (assuming you're doing this
> with some meromorphic function):
proving that a coefficient in a taylor series is zero or not is
potentially an instance of unsolvable etc. Most CAS have
simplification issues such that the result of integration can
involve fancy functions whose differentiation and simplification
lead to problems.