The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Calculator but not HP
Message #1 Posted by Paul Dale on 18 Apr 2012, 1:27 a.m.

http://qamacalculator.com/qama/

Interesting idea.

- Pauli

Edited: 18 Apr 2012, 5:02 a.m. after one or more responses were posted

      
Re: Calculator but not HP
Message #2 Posted by Walter B on 18 Apr 2012, 1:43 a.m.,
in response to message #1 by Paul Dale

Thanks for sharing that link. Interesting LCD as well :-)

      
Re: Calculator but not HP
Message #3 Posted by Matt Agajanian on 18 Apr 2012, 1:44 a.m.,
in response to message #1 by Paul Dale

Interesting indeed. Oh, I think I see something...Yup! The HP-35 carryover, an x^y function key. Perhaps unintentional but very clever.

            
Re: Calculator but not HP
Message #4 Posted by bill platt on 18 Apr 2012, 1:23 p.m.,
in response to message #3 by Matt Agajanian

On Casio calculators, the X and y registers are reverse of RPN: in other words for 2 number functions, you type into the buffer, then hit a function key, which bumps that number into the X register, and then you type the second number (e.g. the exponent) into the buffer which is also the y register (the actual mechanics of parsing etc I don't know how they do that )

      
Re: Calculator but not HP
Message #5 Posted by Marcus von Cube, Germany on 18 Apr 2012, 3:55 a.m.,
in response to message #1 by Paul Dale

This reminds me on our solver which only reliably works with good estimates. ;-)

            
Re: Calculator but not HP
Message #6 Posted by fhub on 18 Apr 2012, 4:37 a.m.,
in response to message #5 by Marcus von Cube, Germany

Quote:
This reminds me on our solver which only reliably works with good estimates. ;-)
Not only, you even have to check the last 2 estimates (at least when the solver fails). ;-)
            
Re: Calculator but not HP
Message #7 Posted by Paul Dale on 18 Apr 2012, 4:49 a.m.,
in response to message #5 by Marcus von Cube, Germany

Anyone who wants a better solver should feel free to code one as a keystroke program and send it in. Conversion to xrom will be troublesome but I'm willing to undertake that effort if required.

The solver in XROM has a 4 level stack (which can't be resized) and access to any allocated local registers and flags. The user's function is called via a special command but for all your solvers, just use an indirect XEQ.

Remember to check for NaN's and infinities and to get the final return stack & last x correct.

Let the flood gates open...

- Pauli

                  
Re: Calculator but not HP
Message #8 Posted by fhub on 18 Apr 2012, 5:07 a.m.,
in response to message #7 by Paul Dale

Quote:
Anyone who wants a better solver should feel free to code one as a keystroke program and send it in.
I think the current solver is quite good. The only thing I don't understand is, that it returns "No root found" with even such a small function value of 1e-15 (in Z) and 2 identical last guesses in X and Y (as for the example in the other TVM thread).
I doubt that many functions would really return smaller values than 1e-15 (or even exactly zero) when applying the solver.

Franz

Edited: 18 Apr 2012, 5:07 a.m.

                  
Beware!! Sounds like really painstaking, exact work! (was: Re: Calculator but not HP)
Message #9 Posted by Walter B on 18 Apr 2012, 5:16 a.m.,
in response to message #7 by Paul Dale

NT :-)

                        
Re: Beware!! Sounds like really painstaking, exact work! (was: Re: Calculator but not HP)
Message #10 Posted by pascal_meheut on 18 Apr 2012, 5:45 a.m.,
in response to message #9 by Walter B

Quote:
NT :-)

LOL

                  
Re: Calculator but not HP
Message #11 Posted by W. Bruce Maguire II on 18 Apr 2012, 12:25 p.m.,
in response to message #7 by Paul Dale

Pauli:

I'm sure any ribbing about the solver is good natured! I'm also sure that everyone understands the complexities involved in creating a good (great) solver; if not, they will as soon as they try to write their own! ;-)

Thanks,
Bruce.

                        
Re: Calculator but not HP
Message #12 Posted by Paul Dale on 18 Apr 2012, 5:43 p.m.,
in response to message #11 by W. Bruce Maguire II

I actually suspect the know how difficult a general purpose function solver is. I certainly didn't before I had to code one and now I've coded two and the second was no easier.

- Pauli

                  
Re: Calculator but not HP
Message #13 Posted by Eduardo Duenez on 19 Apr 2012, 3:08 p.m.,
in response to message #7 by Paul Dale

I'm a number theorist and, unlike some of my colleagues, I have rather limited experience in numerical algorithms, but I'm quite curious nonetheless (I'm a mathematician first, a number theorist second!)

Are the algorithms used by HP calculators SOLVE function publicly disclosed? (Is documentation available?) Are they standard or ad-hoc? Do they vary between different models?

Perhaps more to the point, Pauli. What's WP34s's current solver algorithm based upon? Brent's method perhaps?

I guess I ought to search the forum's history for discussions of issues others have found in the current solve function in the 34s. I am in possession of the 34s's manual, but of course it's not a reference manual on the internal algorithms ;-)

                        
Re: Calculator but not HP
Message #14 Posted by Marcus von Cube, Germany on 19 Apr 2012, 4:01 p.m.,
in response to message #13 by Eduardo Duenez

You can look at trunk/decn.c in the SVN tree. The solver code (at least the core of it) is there.

                              
Re: Calculator but not HP
Message #15 Posted by Eduardo Duenez on 19 Apr 2012, 5:58 p.m.,
in response to message #14 by Marcus von Cube, Germany

Thanks, Marcus. I'll try that. (I assume the SVN tree is hosted on Sourceforge...?)

                                    
Re: Calculator but not HP
Message #16 Posted by Walter B on 20 Apr 2012, 12:59 a.m.,
in response to message #15 by Eduardo Duenez

Yes, it is.

      
Re: Calculator but not HP
Message #17 Posted by Garth Wilson on 18 Apr 2012, 2:51 p.m.,
in response to message #1 by Paul Dale

Hey, we've come almost full circle! (It just gives more digits than a slide rule.)

      
Re: Calculator but not HP
Message #18 Posted by Bruce Bergman on 19 Apr 2012, 12:19 a.m.,
in response to message #1 by Paul Dale

The inventor of this calculator lives just across the way from me, over in La Jolla! It's actually an amazingly brilliant idea. I am always asking my 11 year old to do estimations, and this reinforces the value of it in learning math skills.

For HHC 2012, if we end up in San Diego, it'd be fun to invite this guy to present at the conference and show it live, don't you think? Or whenever HHC comes back to San Diego.

Thanks for finding this!!

Bruce

            
Re: Calculator but not HP
Message #19 Posted by db (martinez, ca.) on 19 Apr 2012, 12:40 a.m.,
in response to message #18 by Bruce Bergman

yes


[ Return to Index | Top of Index ]

Go back to the main exhibit hall