Re: VM machine: A CAS answer 25,000,000+ times longer than it is
- From: Waldek Hebisch <hebisch@xxxxxxxxxxxxxxxx>
- Date: Thu, 11 Dec 2008 22:47:01 +0000 (UTC)
Robert H. Lewis <rlewis@xxxxxxxxxxx> wrote:
....
Let me mention that you VM machine probably has two
limitations.
First, it seems that you do "black box" testing, so
VM machine can not see source code of tested system.
That makes finding some bugs pretty hard. For example,
could VM machine find that there is something wrong with
gcd of 67108859*67108859*x^2-1 and
67108859*67108859*x^2+2*67108859*x +1
Note: the magic number here is 67108859 and you need to
arrange the two polynomials in specific way to
trigger the bug....
--
Waldek Hebisch
Is this just a hypothetical example, or are you saying there is a CAS that gets this wrong? The problem seems to be extremely simple, and should be done correctly by any CAS in a tiny fraction of a second. What is "magic" about 67108859?
There was a CAS: Axiom and derviatives prior to 2008 got this wrong.
Modulo 67108859 gcd is just 1. Axiom used modular computation
modulo 67108859 to quickly discover relatively prime polynomials.
However, Axiom missed check for divisibility of leading terms by
the modulus, so after modular check it claimed the the
polynomials are relatively prime.
There were other checks present which inhibit simpler examples.
The exact input to trigger bug is:
gcd([67108859*67108859*x^2-1, 67108859*67108859*x^2+2*67108859*x +1])
Fixed in FriCAS (and I think the fix is now in all derviatives).
The point is that unless you hit one of magic values there is
no hint of possible bug -- so either one has really huge test set
or one will miss it.
--
Waldek Hebisch
hebisch@xxxxxxxxxxxxxxxx
.
- References:
- Re: VM machine: A CAS answer 25,000,000+ times longer than it is
- From: Robert H. Lewis
- Re: VM machine: A CAS answer 25,000,000+ times longer than it is
- Prev by Date: Re: VM machine: A CAS answer 25,000,000+ times longer than it is
- Next by Date: Re: VM machine: A CAS answer 25,000,000+ times longer than it is
- Previous by thread: Re: VM machine: A CAS answer 25,000,000+ times longer than it is
- Index(es):
Relevant Pages
|