Adept Scientific - English
The world's best software for research, science and engineering.
flag arrow
clearclear
 

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Maple Product Tour
• Buy Maple Now
• View Maple Pricing
• Find out about Online Training
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 11 Professional
Maple 11 Academic
Maple 11 Student Use
Recorded Online Seminars
FREE Training Resources


MapleNet
Maple T.A.
MapleConnect
BlockImporter for Simulink
BlockBuilder for Simulink
Maple Toolboxes
Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

View Maple 10 in Action
Product Comparison Chart

Latest Information

New Features: Professional
New Features: Academic
The Maple Reporter
The Maple Reporter Online
Numerical Algorithms Group
(NAG)


Service & Support

Maple 10 Training Videos
MaplePrimes, blogs, forums
Elite Maintenance Program
Application Centre
Powertools
Maple User Group (MUG)
Join the Maple User Group
(MUG)

Search the Knowledge Base
Technical Support request

List Archives >  Maple User Group List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[MUG] Re: bug in invphi

Search email archive for  

[MUG] Re: bug in invphi
Author: Douglas B Meade    Posted: Tue, 25 Jun 2002 15:28:46 -0400

>> From: "Douglas B. Meade" "meade"

Neil and MUG,

I have not worked with Maple's invphi function for several years
(Maple V, Release 2 in 1993) but remember that it was not very
efficient and was not perfect. At that time I wrote some general
pre-image routines for integer-valued functions. These have not been
updated to later versions of Maple but should not be difficult to
update. The PS and PDF versions of the technical report I wrote at
that time can be downloaded from the list of publication on my website
(http://www.math.sc.edu/~meade/publ.html).

I do not have time to update the code but will be happy to answer any
questions that you might have.

I hope this is of some assistance,

Doug
-----------------------------------------------------------------------
Prof. Douglas B. Meade Phone: (803) 777-6183 FAX: (803)
777-6527
Department of Mathematics URL: http://www.math.sc.edu/~meade/
USC, Columbia, SC 29208 E-mail: "mailto:meade"

[MUG] Re: bug in invphi
Author: Carl Devore    Posted: Thu, 27 Jun 2002 06:04:59 -0400

>> From: Carl Devore "devore"

> >> From: "N. J. A. Sloane" "njas"
>
> Is this a known bug?
> > with(numtheory);
> > invphi(1610510);
> []
> > phi(1771561);
> 1610510
> In other words invphi(1610510); gave an incorrect answer.

My investigation so far shows that this bug will occur for
invphi((p-1)*p^n) for n>1 and p any of the primes
11, 23, 29, 31, 47, 53, 59, 67, 71, 79, 83, 89, 103, 107, 113, 131, ....
I can't see the pattern of the primes, except that it appears that if p is
such a prime, then so are all primes of the form (4*n+2)*p+1, n= 0, 1,
.... Tracking down the bug and verifying the above conjecture might lead
to an interesting result. Perhaps it is one of your Integer
Sequences. So the smallest example that I can find for this bug
is invphi(10*11^2).

[MUG] Re: bug in invphi
Author: Aaron Meyerowitz    Posted: Thu, 27 Jun 2002 17:16:29 -0400

>> From: Aaron Meyerowitz "meyerowi"

>>> From: Carl Devore "devore"
>
>> >> From: "N. J. A. Sloane" "njas"
>>
>> Is this a known bug?
>> > with(numtheory);
>> > invphi(1610510);
>> []
>> > phi(1771561);
>> 1610510
>> In other words invphi(1610510); gave an incorrect answer.
>
>My investigation so far shows that this bug will occur for
>invphi((p-1)*p^n) for n>1 and p any of the primes
>11, 23, 29, 31, 47, 53, 59, 67, 71, 79, 83, 89, 103, 107, 113, 131, ....

I.E. for phi(p^(n+1))

The code looks very "cute" but quite opaque. Other packages seem to find
invphi
correctly and MUCH more quickly. The problem goes back at least to Maple VR5.
Has it really never been noticed before?

Previous by date: [MUG] Re: Export to html in Maple 8 -- problem, Maple User Group
Next by date: [MUG] [Fwd: JCAAM new WEB-SITE], Anastassiou
Previous thread: [MUG] bug in is?., Herman Jaramillo
Next thread: [MUG] [Fwd: JCAAM new WEB-SITE], Anastassiou



Ready to buy?

Maple - single user licence
Add to shopping basket
$ 1,895.00
Upgrade to Maple 12 from v11
Add to shopping basket
$ 995.00
Upgrade to Maple 12 from v10 & below
Add to shopping basket
$ 1,395.00

Featured Downloads

What's New in Maple 11 for Professionals
Maple White Paper: Technical Knowledge - An Asset You Can Afford to Lose?
Maple in Electronics Application Pack
Maple in Robotics & Aerospace Application Pack
Maple in Finance Application Pack

Product Reviews

"Without the Maple software, we would have to spend weeks generating the equations of motion for every experiment. Then the chances that we did it right would basically be near zero. There would always be a mistake somewhere. It is very difficult to set up a dynamic motion model by hand."
- Jean-Claude PiedBeouf, Ph.D Manager of Robotics, Canadian Space Agency

"Its very good - highly accurate and easy to use. The speed of Maple allows me to change equations and quickly reintegrate them into the application, so more possibilities can be explored to achieve the precise effect desired."
Shawn Neely, Senior R & D Director for PDI/Dreamworks
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055