Feb 282013

The Museum of HP Calculators

HP Forum Archive 21


[ Return to Index | Top of Index ]

WP-34s: Speed benchmark
Message #1 Posted by W. Bruce Maguire II on 27 Apr 2012, 6:49 p.m.Hi all,

Today, I happened to stumble on a page of the MoHPC that I had never seen before: the Benchmark Results page (MoHPC Benchmark Results). Considering that it was a quick test, I just *had* to try-out the benchmark code on my WP-34s! 😉

I followed the rules, and stayed as close to the original/pseudo-code as possible (no recall arithmetic, no ‘back’). This is what I got:


    Math/overhead:  6911 /679*100 = 1018
    Trigonometry:    240 /40*100  =  600
    Speed/US$:    (2*1018+600)/75 = 3515  (assumes $75 price)

For comparison, the two best scores on the MoHPC page (through HP-49G+) for each test are:

    Math/overhead:  HP-9825A (977), HP-49G+ (643)
    Trigonometry:   HP-49G+ (2535), HP-48G (1350) [SysRPL]
    Speed/US$:      HP-49G+ (2171), HP-48G (1276) [SysRPL]

And based on a quote from the MoHPC Benchmark page:


The trigonometric algorithms in the handhelds appeared to be more efficient than the those used in the desktops but the desktops calculated trig functions accurate to 12 digits vs. 9 for the early handhelds. On the HP-67/97 handheld accuracy improved to 10 digits and on the HP-41C and RPL calculators, handheld accuracy was comparable to the desktops.

The recent handhelds have plenty of horsepower as evidenced by the trigonometric test, but they also have more overhead with larger screens, multiple data types, unlimited stacks, etc. As a result the math results are not as impressive because they spend proportionately more time on overhead.

I would observe:
(1) the WP-34s’s Trig benchmark is not as impressive because it is computing the values to *much* higher accuracy,
(2) the WP-34s screams in the Math/Overhead benchmark, and
(3) the WP-34s is an *unmatched* powerhouse of speed and capability for a very, very small price! (I used $75, but you could fairly use a price of $21 + $6 + 6$ = $33 for your HP-30b + cable + overlay!)I love my WP-34s! 😉

Have a good weekend,

Re: WP-34s: Speed benchmark
Message #2 Posted by Paul Dale on 27 Apr 2012, 6:56 p.m.,
in response to message #1 by W. Bruce Maguire II
The 34S is calculating the trig functions until convergence — 39 digits stable in the series expansion. This is a bit more than the fifteen used in the 12 digit devices 🙂

There is also a lot of space saving measures going on behind the scenes that are costing performance.

Still, I think it is respectable.

– Pauli

Re: WP-34s: Speed benchmark
Message #3 Posted by Tim Wessman on 28 Apr 2012, 3:27 a.m.,
in response to message #2 by Paul Dale
Definitely very respectable. 🙂

I’ll throw in my own OT score for the firmware running on the 39gII in front of me here (just can’t help myself), and a few more for some of the other speed tests. This is actually the first time I’d ever seen this particular speed test.

Math: 82124/679*100 = 12095
Trig: 15062/40*100 = 37655
Sp/$: (2*12095+37655)/80*100 = 77306

Two others –
NQueens: 1.35s
Addition loop: 680,000 or so

I would observe:
(1) ‘Tis my new baby 🙂 (move aside 10bII+)



Edited: 28 Apr 2012, 3:38 a.m.

Re: WP-34s: Speed benchmark
Message #4 Posted by Marcus von Cube, Germany on 28 Apr 2012, 4:04 a.m.,
in response to message #3 by Tim Wessman
Tim, impressive!

I assume these figures are not too far from what an unmodified 30b will be capable of. It uses the same algorithms and should just fare similar if we take the differing operating frequencies into account. Someone willing to try it out?

Re: WP-34s: Speed benchmark
Message #5 Posted by Mark Scheuern on 28 Apr 2012, 8:47 a.m.,
in response to message #4 by Marcus von Cube, Germany
On my 30b:

Math: 5860/679*100 = 863

Trig: 10608/40*100 = 26520

Sp/$: (2*5860+10608)/40*100 = 55820


Edited: 28 Apr 2012, 8:48 a.m.

Re: WP-34s: Speed benchmark
Message #6 Posted by Tim Wessman on 28 Apr 2012, 1:56 p.m.,
in response to message #4 by Marcus von Cube, Germany
The speed on this processor isn’t controlled directly. Basically, you give it an allowable max upper limit and it tends to fluctuate up to that. The speed is approximately in the 70Mhz range most of the time from what we can tell. Any higher and the built in RAM in no longer synchronous.


Re: WP-34s: Speed benchmark
Message #7 Posted by Marcus von Cube, Germany on 28 Apr 2012, 3:40 p.m.,
in response to message #6 by Tim Wessman
It’s not easy to find the processor data sheet. Freescale seems to have discontinued the series and does not offer any in depth documentation on their site, at least not in an easy to find location. I just found a comparison sheet of the TSMP series.
Re: WP-34s: Speed benchmark
Message #8 Posted by Paul Dale on 28 Apr 2012, 4:05 a.m.,
in response to message #3 by Tim Wessman
That is very fast! Is this a different CPU??? Or aren’t you allowed to comment 🙁


– Pauli

Re: WP-34s: Speed benchmark
Message #9 Posted by Tim Wessman on 28 Apr 2012, 11:18 a.m.,
in response to message #8 by Paul Dale
It is the same one that has been in there since the launch of the 39gII – a STMP3770.


Re: WP-34s: Speed benchmark
Message #10 Posted by Gilles Carpentier on 28 Apr 2012, 5:50 a.m.,
in response to message #3 by Tim Wessman
😀 It is very fast ! Much faster than a 50G with user RPL (66x for the n queens puzzle, 15 or 20x for others )

But what language did you use for your 39GII benchmark ? Could you give the sources of your programs ?


[OT] Re: WP-34s: Speed benchmark
Message #11 Posted by Tim Wessman on 28 Apr 2012, 1:43 p.m.,
in response to message #10 by Gilles Carpentier
Hmm… hopefully I didn’t screw anything up so I will look foolish. It was 1:30 am my time. 😐

I retested with the exact source I have below just to make it as consistent as possible. Timing was done using ‘Time(<progname>)’ as the input where a time was required, and done using a check against the execution value where a manual stop was required.

The programming language on the 39gII is definitely an algebraic style language, but there is definitely influences from other places. It should be very easy and readable for just about anyone.

The NQueens was kept identical to the old “39gs” program basically as I wanted a comparison (~5m06s for those interested IIRC). I suspect it would go faster if modified to be a better structure.


     WHILE Y>1 DO
       IF T==0 OR X-Y==ABS(T) THEN
         WHILE L1(X)==0 DO
   UNTIL Y==1 END;

The addition loop can be done like this, (stopped at 1 min with ON/C). 

  UNTIL 0;

Math test and trig test have ‘wonderful’ algebraic nesting… 🙁


  UNTIL Ticks>T;

EXPORT TRIGTEST(a) BEGIN T:=Ticks+1000*a; N:=0; REPEAT e^LN(ATAN(TAN(ACOS(COS(ASIN(SIN(56.26))))))); N:N+1; UNTIL Ticks>T; N; END;

Also, I believe I was remembering the loop test value incorrectly last night. I am seeing around 640,000 right now after several runs.

With these exact sources, I get these results after 5 runs averaged. I assumed radians mode. Degree mode loses about 100 or so over a minute.


Math: 85389/679*100 = 12576
Trig: 15198/40*100 = 37995
Sp/$: (2*12576+37995)/80*100 = 78934

Addition Loop Test: ~640,000 NQueens: 1.32s


Edited: 28 Apr 2012, 1:48 p.m.

Re: [OT] Re: WP-34s: Speed benchmark
Message #12 Posted by Xerxes on 28 Apr 2012, 6:06 p.m.,
in response to message #11 by Tim Wessman
I’m impressed that the 39gii is even faster than the Nspire. Thank you for testing the 39gs and 39gii.
Re: [OT] Re: WP-34s: Speed benchmark
Message #13 Posted by Tim Wessman on 28 Apr 2012, 9:07 p.m.,
in response to message #12 by Xerxes
Well, I didn’t actually test the 39gs. That is the result from the 40gs in your chart, which is the same unit in my mind. There should be no difference between them in the programming execution speed.


Re: [OT] Re: WP-34s: Speed benchmark
Message #14 Posted by Gilles Carpentier on 29 Apr 2012, 12:16 a.m.,
in response to message #11 by Tim Wessman
“The programming language on the 39gII is definitely an algebraic style language, but there is definitely influences from other places. It should be very easy and readable for just about anyone.”

As a Pascal programmer,I like it. Very clear and readable (” there is definitely influences from other places” : Modula and Oberon ? ) I always loved Pascal, because it has a very logical syntax and can be compiled in one pass only. Those who have worked with big projects in C or Pascal (Delphi) can understand. Time compilation is much faster in Pascal (but i dont work in C since long time so perhaps compilers are now betters)

EDIT 2 : The 39GII programs are (without variables declarations and MAKELIST) exactly like in Modula or Oberon. There are only an (unnecesary ?) END; after the UNTIL (copy mistake ?) And the == which is = in modula/oberon

What are the N; or S; without command in the programs ? Just to “push” the results in the “history” (kind of stack)?

EDIT 1 :

here is an HP Pascal version wich need more BEGIN/END statement unlike Modula


Program NQueens;

Uses SystemHP,MathsHP_49;

VAR R,S,X,Y, T : Integer; L1 : Array [1..8] of Integer;

BEGIN R:=8; S:=0; X:=0; REPEAT X:=X+1; L1[X]:=R; REPEAT S:=S+1; Y:=X; WHILE Y>1 DO BEGIN Y:=Y-1; T:=L1[X]-L1[Y]; IF T=0 OR X-Y=T OR Y-X=T THEN BEGIN Y:=0; L1[X]:=L1[X]-1; WHILE L1[X]=0 DO BEGIN X:=X-1; L1[X]:=L1[X]-1; END; END; END; UNTIL Y=1; UNTIL X=R; END.

0.895 sec 928 Bytes

There is a bug in HPPASCAL with ABS on integer.

compilation give :


function Abs (x: integer): integer;
    D1=D1+ 5
    A=DAT1 A
    D1=D1- 5
    LC(5) #7FFFF
    ?A<C A
    GOYES NoNeg
    A=-A A

=> Instruction inconnue dans “?A<C A” à la ligne 12

(unknow command in line 12 “?A<C A” )

I dont know at all Saturn code. could somenone help ?


Edited: 30 Apr 2012, 4:12 a.m.

[ Return to Index | Top of Index ]

Go back to the main exhibit hall

 Posted by at 8:32 pm
Feb 222013


Pin It


Founded in 1972, the Society for Community Organization (SoCO) in Hong Kong recently released this series of startling photographs that show the cramped living conditions of residents by shooting entire ‘apartments’ from above. While the use of a wide-angle lens certainly dramatizes the effect, there is no doubt that these are very small living quarters.

According to SoCO:

– There are approximately 100,000 people living in inadequate housing such as: cagehomes, bedspaces, cubicles, sub-divided units, cocklofts and roof-top huts (2010)
– There are approximately 200,000 registered applicants (which consists of 350,000+ people) on the waiting list for public rental housing (June 2012)
– There are approximately 93,500 ‘singletons’ applicants on the waiting list for public rental housing (HK gov. provided 2,000 units for singletons per year)

You can find a larger gallery of these apartments on the SoCO website that are not shot from directly above here. Scanning the QR code drafts an email petition to the Chief Executive of the Hong Kong SAR, Cy Leung. A similar series was done by Michael Wolf entitled 100 x 100 that showed 100 different Hong Kong ‘apartments’ that were 100 square feet in size.

You should also check out the Kowloon Walled City that was demolished in 1994. At a time the walled city contained 33,000 residents within a 6.5-acre (0.026 km2; 0.0102 sq mi) border.

[lense.fr via Reddit via MyModernMet]



cramped apartments from above hong kong soco (2)

By TwistedSifter Logo

 Posted by at 6:25 am
Feb 222013
Photo by Paul Santiago / My Shot

Photo by Paul Santiago / My Shot

Measuring sentiment has always been tricky for scientists. There’s no single metric to indicate whether someone will be happy or sad, and people’s desires can differ so dramatically that even something like, say, winning a million dollars, might not translate into actual happiness. The country of Bhutan has tried to aggregate its people’s happiness into a single number—based on the economy, environmental wellness and political stability—known as Gross National Happiness. Yet the model isn’t exactly conclusive, nor easily transferable to other countries.

 Posted by at 6:22 am
Feb 182013

Maxim integrated


Getting Started with a Radio Design

By: Martin Stoehr, Principal Member of the Technical Staff, Applications
Jan 31, 2013

Abstract: The process of designing a radio system can be complex and often involves many project tradeoffs. With a little insight, balancing these various characteristics can make the job of designing a radio system easier. This tutorial explores these tradeoffs and provides details to consider for various radio applications. With a focus on the industrial, scientific, medical (ISM) bands, the subjects of frequency selection, one-way versus two-way systems, modulation techniques, cost, antenna options, power-supply influences, effects on range, and protocol selection are explored.

Click here for an overview of the wireless components used in a typical radio transceiver.
A similar version of this article appeared on Electronic Design, December 21, 2012.

Selecting the Right Frequency

Why would a designer want to operate in the 868MHz/915MHz band rather than the 433.92MHz part of the spectrum? In other words, how do you choose which frequency to use? The answer is affected by two primary considerations: either the application has a traditional and/or predefined band in which it operates, or the designer must balance the tradeoffs of each parameter in the design to make the best band selection (Figure 1).
Figure 1. Common radio design trade-offs.
Figure 1. Common radio design trade-offs.
 Posted by at 6:55 am
Feb 182013

Detailed Photos of the Sun by a Backyard Astronomer


By day, Alan Friedman makes greeting cards for Great Arrow Graphics. At night, Friedman pursues his passion for astronomy from his observatory, located in the backyard of his home in Buffalo, New York. While it’s not an ideal site, given the street lights, telephone wires and jet stream winds. He makes the most of it, focusing on the brighter objects in the sky like our sun, moon and nearby planets.


Alan Friedman: Website | Tumblr | Prints



alan friedman sun photography (5)

TwistedSifter Logo
 Posted by at 6:38 am
Feb 142013

Go to EXCELENT tool – js emulator (thanks to F. Bellard)




sw modem


Help, tutorials …









ls -al (list)


dmseg | more




 Posted by at 8:04 pm
Feb 082013

Fun with Masked ROMs – Atmel MARC4

At Aperture Labs we have Code Monkeys and Chip Monkeys. Chip Monkeys do the dangerous stuff, while we Code Monkeys sit in our nice safe offices playing with bits and bytes and other things that can’t hurt us…

Now, you’re probably wondering what could possible be ‘dangerous’ in an IT Security business, and that’s a perfectly fair question. How about boiling nitric acid for a start? Or fiddling with circuits that are directly connected to mains electricity? Exactly. Dangerous!

So when head Chip Monkey Zac Franken says to me: “Here are some pretty pictures of chips that I’ve dissolved in some lovely boiling nitric acid”, I am quite happy to be a Code Monkey and to leave the nasty smelly dissolvy stuff to him… 🙂

You might ask why you would want to dissolve chips in the first place? Usually, it’s because you are trying to do something like reset a fuse to allow reading/writing of protected areas or probe a data track to observe data being processed by the chip, or even trying to figure out the actual logic of a proprietary chip by viewing and reverse engineering it’s construction.

In our case it’s a combination of things, but the primary target at this stage is the program code that is stored in Masked ROM. The chip itself is using a known architecture and a published assembly language, so the only reverse engineering required is to recover the actual instructions stored in the ROM. As we can see from the picture below, this should be relatively easy as ‘data’ is clearly discernible:

Masked ROM Top Left

If we zoom in we can see what looks like blobs of solder connecting vias, and we can guess that the presence of a blob represents a ‘0’ or a ‘1’ and the absence vice-versa:

 Posted by at 6:40 am
Feb 042013
Reading your documents and web content on Kindle is now easier than ever. Use Send to Kindle applications to read on your Kindle devices and free reading apps on iPhone, iPad, iPod Touch and Android.


From your browser

Send news articles, blogs posts and other web content to read them anytime, everywhere on Kindle devices or reading apps.

Send to Kindle for Google Chrome
Send to Kindle for Mozilla Firefox

Send to Kindle for Apple Safari is coming soon.

From your desktop

Send your personal and business documents to read them anytime, everywhere on Kindle devices and reading apps.

Send to Kindle for PC
Send to Kindle for Mac

From your e-mail

Attach and send your documents to Kindle using the “Send-to-Kindle E-mail Address” to read them anytime, everywhere on Kindle devices and reading apps.

Send to Kindle by E-mail

From your Android device

Send documents from your Android phone or tablet to read anytime, everywhere on your Kindle devices and reading apps.

Send to Kindle for Android

 Posted by at 5:19 am
Feb 032013





Useful links

CEE Department

Water Research Lab

Engineering College

USU Directories

USU Calendar

USU Libraries


USU Webmail

Engineering Mail

USU Webcams

Giving to USU

HP 50G

TI 89








  hp 49g+ Tutorial course

Outline of exercises

Gilberto E. Urroz – ph. 435-797-3379 – gurro@cc.usu.edu – EC 214 – fax 435-797-1185  

This web site contains links for downloading outlines of exercises for the tutorial course – Links in parentheses allow  you to download files with examples for loading in your calculator.  Many of the programs listed in the User’s Guide, and referred to in the exercises, are available here in ASCII format or Binary format.

Chapter 1 – Getting startedChapter 2 – Introducing the calculator

Chapter 3 – Simple calculations with real numbers

Chapter 4 – Calculations with complex numbers

Chapter 5 – Algebraic and arithmetic operations

Chapter 6 – Solution to single equations (examples)

Chapter 7 – Solving multiple equations (examples) /Using the SOLVR: see Ch. 27

Chapter 8 – Operations with lists

Chapter 9 – Vectors

Chapter 10 – Creating and manipulating matrices

Chapter 11 – Matrix Operations and Linear Algebra

Chapter 12 – Graphics

Chapter 13 – Calculus Applications

Chapter 14 – Multi-variate Calculus ApplicationsChapter 15 – Vector Analysis Applications

Chapter 16 – Differential Equations

Chapter 17 – Probability Applications

Chapter 18 – Statistical Applications

Chapter 19 – Numbers in Different Bases

Chapter 20 – Customizing menus and keyboard

Chapter 21 – Programming in User RPL language

Chapter 22 – Programs for graphics manipulation

Chapter 23 – Character strings

Chapter 24 – Calculator objects and flags

Chapter 25 – Date and Time functions

Chapter 26 – Managing memory

Return to hp 49g+/hp 48gii tutorial course

To read PDF documents download Adobe’s Acrobat Reader





 Posted by at 8:55 am
Feb 032013

Experimental Mathematics Website

<== This is a picture from the interactive geometry package Cinderella showing the behavior of 10,000 starting values in the rectangle [0,1]x[h-1,h+1], where h is the height of the horizontal line, after six iterations of the algorithm which reflects a point x in the sphere then reflects the outcome in the line and then averages the result y with x. It is an accessible prototype for a remarkable image reconstruction algorithm known variously as Douglas-Ratchford, Lion-Mercier, Fienup’s method, and “divide-and-concur.” Some related graphics can be generated and displayed at these URLs: Expansion Reflection (wait 30-60 seconds to see the display).

Quote of the day (refresh browser to select another): We [Kaplansky and Halmos] share a philosophy about linear algebra: we think basis-free, we write basis-free, but when the chips are down we close the office door and compute with matrices like fury. — Irving Kaplansky (1917-2006), quoted in John H. Ewing and F.W. Gehring, ed., Paul Halmos: Celebrating 50 Years of Mathematics, Springer, 1991.

The complete list of quotes is available here.

This website is a repository of information on experimental and computer-assisted mathematics. It is operated by


  • David H. Bailey, Lawrence Berkeley Laboratory, Berkeley, California (DHB website)
  • Jonathan M. Borwein, University of Newcastle, Newcastle, Australia (JMB website)

 Posted by at 7:58 am
Feb 012013

who we are

quietrevolution are a small scale wind turbine manufacturer, aiming to play a leading global role in the development of local energy production, through the promotion of wind energy solutions and the role they play in helping combat climate change. We offer a no-cost renewable energy solution for land owners, organisations and communities to gain free electrcitity.

Since 2005 our team has developed an innovative vertical axis wind turbine, the qr5. As a manufacturer, quietrevolution has the techical knowledge and experience, to evaulate the MCS Certified small-scale wind turbines available in the UK. We aim to select the most appropriate technology for your site, that utilises the available wind resources, and fits your surrounding environment.

join the renewable energy revolution
© Quiet Revolution Ltd 201223 B&C Berghem Mews, Blythe Road, London W14 0HN
 Posted by at 9:17 pm
Feb 012013

Quiet Revolution

10 Wind Turbines That Push the Limits of Design

The American Wind Energy Association (AWEA) released their 20% Wind Report Card on July 8, following up on a study in which the Department of Energy proposed a goal where 20 percent of U.S. electricity comes from wind energy by 2030. The AWEA gave the overall U.S. push for wind power a “solid B”—high marks from an advocacy group that grades U.S. infrastructure. The highest letter in the report was an A- awarded for “Technology Development.” This is no big surprise—for years now, the government, alternative-energy researchers and entrepreneurs have been putting time and money into making better tech for cleaner, more efficient energy production. Here are 10 wind turbine designs that push the limits of the current design and may help the U.S. get back to being an A student by 2030.

 Posted by at 9:09 pm
Feb 012013


vypocty.txt · Poslední úprava: 2013/01/19 11:29 (upraveno mimo DokuWiki)

 Posted by at 9:08 pm
Feb 012013
 Posted by at 7:10 am