Just to let folks here know, the next revision (1.13) of the documentation is available from the sourceforge site. The sources are available via subversion, although not working on the physical hardware still.
- Pauli
WP34s
|
|
« Next Oldest | Next Newest »
|
▼
Post: #51
02-15-2011, 01:53 AM
Just to let folks here know, the next revision (1.13) of the documentation is available from the sourceforge site. The sources are available via subversion, although not working on the physical hardware still.
▼
Post: #52
02-15-2011, 06:16 AM
I've also uploaded a current Mac OS/X Intel binary and a recent Windows binary. I've no idea if they will work for other people or not... - Pauli ▼
Post: #53
02-15-2011, 08:50 AM
Paul, on which platform is your Windows port based? I'm currently working on the HP20b SDK and I'm willing to port WP34s to Cyrille's emulator. I still have to check, if the application follows the same rules as the emulator (or SDK) force, like having an application.cpp file as the central point for the user interface.
Edit: I just had a short look at your sources. I'm not yet sure where to snap in Cyrille's code. I think, a graphical emulation would be very helpful. BTW, it compiles fine under VC++ Express 2010. Edited: 15 Feb 2011, 9:35 a.m. ▼
Post: #54
02-15-2011, 03:43 PM
I've spent some more time with the sources. A standard main() in keys.c which is acting as a key press dispatcher works fine in a single thread environment, but this is not the proper way to interface to an event driven platform. Both the base code in the SDK for the platform and the Windows MFC emulation need callback functions for the handling of events. ▼
Post: #55
02-15-2011, 06:14 PM
for a windows GUI, you'll need to write a new "main" replacing the main loop in keys.c you'll need to translate any visual buttons into wp34s key events (along with real keys) and call process_keycode. after that signal a display repaint. all other windows events dispatched as normal. again the display code will need reworking if you plan to render this graphically.
Post: #56
02-16-2011, 01:17 AM
I don't know the version of Windows used to compile this sorry. Yes, my main() in keys.c is a keystroke dispatcher. To do an event driving GUI interface, just call the guts of my main() on a key press. There is no way, you'd want to go multi-threaded on the 30b hardware. Single thread take a key press and dispatch is definitely the way to go. HP's code does it this way as does mine. - Pauli ▼
Post: #57
02-16-2011, 02:30 AM
At least the Windows version in the SDK is multithreaded. On the real hardware, there must be some background processing and interrupt driven actions, too. Think of automatic power down, processor off/on while the display is visible, and the like. I'll check the sources in the SDK to be sure. For the rest of February, Meindert's Project has priority. So wp34s is on hold from my side. ▼
Post: #58
02-16-2011, 02:44 AM
HP's 30b development firmware is pretty much single threaded. There are interrupt handlers and timers of course but in reality they really don't do much of anything. Everything hinges around the key press.
PS: What's Meindert's Project??? ▼
Post: #59
02-16-2011, 11:15 AM
Meindert is working on the MLDL again. He has added an mbed controller and now needs some demo software for networking.
Post: #60
02-16-2011, 01:19 AM
My code isn't immediately compatible with HP's SDK. I started merging the two but never finished. The source as distributed includes this partial merge. I'd figured I was going about it incorrectly and what I had done needed to be removed and my code modified to integrate with HP's to take direct advantage of their low level support. Then life got in the way, not to mention having no access to the development environment HP's sources require. - Pauli
Post: #61
02-15-2011, 02:40 PM
It works on Vista:
BEG Cheers, Gerson. ▼
Post: #62
02-15-2011, 03:38 PM
Olá Gerson, this fake is detected most easily - we don't employ BEG d;-D ▼
Post: #63
02-15-2011, 03:44 PM
Hallo Walter, I wonder why the "BEG" annunciator is lit. Anyway, that's what I got when running WP34s.exe from the command prompt and after doing some calculations. Perhaps I pressed a wrong key... Regards, Gerson.
Post: #67
02-16-2011, 01:12 AM
We do display BEG when the program is at the first step. So this display looks legitimate to me.
▼
Post: #68
02-16-2011, 02:45 AM
That's one of the unsurpassed advantages of real life: it unveils undocumented features. But now it's documented (it will be in v1.14 at least) d;-) ▼
Post: #69
02-16-2011, 02:52 AM
I mentioned this feature well over a year ago ;-) It really is kind of useful.
Post: #70
02-16-2011, 03:17 PM
Hello Paul,
Quote: It IS legitimate. Here is a link to an UNEDITED copy of my HP notebook screen, as of yesterday: Now, to the mini-challenge. In order to get the number on the wp34s screen, trivially 13 keystrokes are required:
1 4 1 . 4 2 6 5 6 4 7 6 9 The challenge is to get this done using at most 11 keystrokes (not programming steps). My 11-keystroke solution will not work on the HP-42s because it will give an answer in excess of 1 ulp. Likewise on 10-digit calculators it will be needed no more than 11 keystrokes to get 141.4265648. So far I have been able do it using only 10 keystrokes on the HP-35 (1972), but not on the HP-15C (I think this gives a hint to at least one keystroke). If it can be of any help, the 16-digit result is 141.4265647689814 (The meaning of this is part of the challenge, otherwise the WP 34S solution would be somewhat easier :-) Cheers, Gerson.
▼
Post: #71
02-17-2011, 12:35 AM
Not a solution to the specified problem, but I stumbled upon this which qualifies as an elegant near miss I feel:
command 34s keys 15c keys
▼
Post: #72
02-17-2011, 02:19 PM
Paul, That's only four programming steps for eight correct digits which would be great in calculators with reduced number of steps (if such a number is ever needed in a program). I submitted 141.4265647689814 to WoframAlpha but it wasn't able to find the correct closed form, neither did other inverse calculators I tried. So, there's at least one thing I know WolframAlpha does not :)
A tip to the 10-keystroke HP-35 solution: Divide 141.4265648 squared by pi then multiply the result by 3. Though this looks like an integer on the HP-35, it's actually an Regards, Gerson.
----------------------------------------------------------
▼
Post: #73
02-18-2011, 10:36 AM
Ok, here it is:
141.4265647689814.. = pi + pi^2 + pi^3 + pi^4 Alternative closed forms: (pi^5 - 1)/(pi - 1) - 1
WP 34S keystrokes: h 3 ENTER ENTER ENTER * + * + * +HP-35 keystrokes: 1 9 1 0 0 pi * 3 / sqrt
▼
Post: #74
02-18-2011, 02:40 PM
Olá Gerson, you could have saved one stroke by using FILL on the wp34: h 3 g ENTER * + * + * + while on the hp-35 you have to repeat ENTER: pi ENTER ENTER ENTER * + * + * + The approximate HP-35 solution you posted deviates from the truth by 1.9e-8.
Cumprimentos,
Edited: 18 Feb 2011, 2:53 p.m. ▼
Post: #75
02-18-2011, 05:47 PM
Quote: And this works with the stack size set to 8 not 4 :-)
▼
Post: #76
02-19-2011, 12:29 AM
Quote:... as well as with 4 levels :)
Post: #77
02-18-2011, 06:29 PM
And if you program it, a further step can be saved when using the 8 level stack:
PI and one more if the internal BACK is used instead of LBL/GTO but that can't be done from the keyboard.
▼
Post: #78
02-18-2011, 09:30 PM
Paul & Walter, looks like I should have read the manual :-) What I think it is interesting in the sum of these powers of pi is
pi + pi^2 + pi^3 + pi^4 ~ 100*sqrt(2) + 1/(2^6 + 2^7) (off by ~2e-7 Also interesting is pi^17 (the first five significant digits match those of sqrt(8)). Combining these and adding a term involving sqrt(2) yields a round near integer:
pi^16/((pi + 1)*(pi^2 + 1)) + 2*sqrt(2)*(20 + sqrt(2)) = 2000000.000349779 Notice the equivalent RPN expression involves mostly 2, sqrt(2) and pi:
pi x2 x2 x2 x2 pi 1 + / pi x2 1 + / 2 sqrt(2) 2 * 2 sqrt(x) 20 + * + Or, in terms of WP 34S keystrokes:
h 3 Regards, Gerson.
▼
Post: #79
02-19-2011, 12:24 AM
Quote:This is a common phenomenon :-)
Post: #80
02-16-2011, 01:21 AM
For more exciting information, make the window a bit higher and press 'F' to show lots of internal state (including the full stack). Pressing 'T' goes into a trace mode and 'Q' quits. None of this will be in the final firmware of course but these commands are great for debugging.
Post: #81
02-16-2011, 02:39 AM
I've just now uploaded a Ubuntu Karmic binary. Since it is statically linked, it ought to run on most versions of linux as is. It requires a terminal window, just like all the other versions. - Pauli
Post: #82
02-16-2011, 11:14 AM
Cool stuff!! A Window GUI will be very very nice though. Working the DOS-box emulator is a bit like a juggling act. :-) Namir ▼ ▼ ▼
Post: #85
02-16-2011, 11:51 AM
Meindert comes first, his project has a time limit. But thereafter... ▼
Post: #86
02-16-2011, 12:54 PM
Oh - it's our fault we haven't set a time limit? That can be corrected most easily d8-)
Post: #87
02-28-2011, 06:09 AM
After having helped Meindert out, I'm back on the wp34s track. Here is my (clumsy) artwork: http://www.mvcsys.de/temp/wp34s/wp34s_skins.zip You can unpack the file in the emulator Debug/Release directories and get the modified skins on Cyrille's original number guessing game. Some work still ahead... ▼
Post: #88
02-28-2011, 06:43 AM
a couple of silly questions: why are 'fix', 'sci', and 'eng' brought out on their own key labels? most folks would surely tend to set the display format to their own personal preference and hardly ever touch it again. that is certainly what i do, in which case these could be put down in a menu. what are the 'B', 'C', and 'D' keys for? given that these three labels exist exactly the same below the keys. the white functions above (1/x, etc), it would seem, would be better placed on the keys themselves.
cheers,
Edited: 28 Feb 2011, 6:48 a.m. ▼
Post: #89
02-28-2011, 07:38 AM
Hi Robert,
there are no silly questions - only silly answers, though I hope getting around them ;) Quote:These are three programmable hotkeys. Compare HP-65, 67, 34C etc. For full information, please take a look to the documentation published (v1.13). Quote:I concur. One could put the command DISP (this is not a menu, see v1.13) on one shifted location there and gain two shifted locations for whatever you like being placed there - feel free to propose something. Nevertheless there are dissenting votes, too, and in this case I had no better offer than what you see so far. Added: Personally, I switch between FIX and ENG modes quite a lot, sometimes use SCI instead and hardly ever use ALL. YMMV.
Don't hesitate to ask more. Edited: 1 Mar 2011, 2:15 a.m.
Post: #90
03-01-2011, 01:33 AM
Nice work Marcus. I toyed with the idea of doing a graphical version using SDL but it never progressed for similar reasons to the real hardware port :-(
Personally, I switch between FIX and ALL modes quite a lot, occasionally use SCI and pretty much never use ENG. Of course, everyone is different.
▼
Post: #91
03-01-2011, 10:22 AM
Paul, Walter, you've mail on your sourcefourge mail addresses. I've just opened my 20b in order to fit a JTAG connector (the USB/JTAG hardware has been ordered.) I plan to start more or less from scratch, using the SDK modules when it seems useful (keyboard, display) but having more control over what the hardware does. This is partly motivated by pure curiosity. On the other hand, it will ease in fitting in the wp34s software. ▼
Post: #92
03-01-2011, 11:10 AM
Hallo Marcus, Quote:Nothing arrived yet. I've just opened the respective channel at SourceForge, so feel free to try again or contact me via the forum mail function. ▼
Post: #93
03-01-2011, 02:02 PM
Forum mail doesn't work for "Walter B", at least not when I click on your name in the previous post. :( So here you go:
Quote:
Post: #95
02-28-2011, 05:11 PM
Thanks Marcus. I know I would be much more likely to play with the 34s emulator if it had a skin rather than a text window. Can't wait until it is really working just to play with! ▼
Post: #96
03-12-2011, 09:25 AM
The wait is going to be over, soon! I've just compiled a first version which seems to act more like a calculator then a number guessing game. ;) Hopefully we'll release something shortly for the forum members to toy with.
Post: #97
02-16-2011, 01:16 PM
Hi Marcus ▼
Post: #98
02-16-2011, 05:56 PM
It will not be QT, it is just the (MFC based) framework that Cyrille and Tim have already created. I've done the (clumsy) artwork already. It's just a problem of me existing only once. |