Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.soft-sys.math.maple > #1395

Re: Bug hopping

Newsgroups comp.soft-sys.math.maple
Date 2023-07-05 00:35 -0700
References <7b2a001f-581a-437f-a5c1-acf90190ecabn@googlegroups.com>
Message-ID <2b4ce6fa-8b4e-41a4-b4e6-098631f5cef0n@googlegroups.com> (permalink)
Subject Re: Bug hopping
From acer <maple@rogers.com>

Show all headers | View raw


On Tuesday, July 4, 2023 at 2:35:59 AM UTC-4, peter....@gmail.com wrote:
> Maple has developed a sophisticated strategy to ensure that the experience of its users is one of hopping from bug to bug. 
> 
> It is based on two pillars: To change basic definitions (which are in fact fixed since Euclid) from time to time, and, secondly, to rely on the fact that their long-time users can't always adapt that quickly. 
> 
> A nice example with the current Maple version (2023) is: 
> 
> restart; with(numtheory): 
> A027375 := n -> local d; add(mobius(d)*2^(n/d), d = divisors(n)): 
> seq(A027375(n), n = 1..9); 
> 
> > 2, 2, 6, 12, 30, 54, 126, 240, 504 
> 
> restart; with(NumberTheory): 
> A027375 := n -> local d; add(Moebius(d)*2^(n/d), d = divisors(n)): 
> seq(A027375(n), n = 1..9); 
> 
> > 2, -2, -2, 0, -2, 2, -2, 0, 0 
> 
> If you have nothing better to do, you can waste your time trying to find the bug.

In your second example you call `divisors(n)` even though `numtheory` hasn't been loaded.
Did you intend this, instead?

restart; with(NumberTheory):
A027375 := n -> local d; add(Moebius(d)*2^(n/d), d = Divisors(n)):
seq(A027375(n), n = 1..9);
               2, 2, 6, 12, 30, 54, 126, 240, 504

Back to comp.soft-sys.math.maple | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Bug hopping "peter....@gmail.com" <peter.luschny@gmail.com> - 2023-07-03 23:35 -0700
  Re: Bug hopping acer <maple@rogers.com> - 2023-07-05 00:35 -0700
    Re: Bug hopping "peter....@gmail.com" <peter.luschny@gmail.com> - 2023-07-05 01:44 -0700
  Re: Bug hopping jfh <harperjf2@gmail.com> - 2023-07-07 22:12 -0700

csiph-web