Hi Valentin, I recently typed in your HP71 program featured in your
article "Boldly Going...Identifying Constants. Trying your example:
CALL IDENTIFP(-2.34305547341,S$,3,3,3,12,1E-9,V) @ S$;V
I don't obtain your result of -1/Sin((11/13/Pi^2)^(1/3)) 100.
BTW I ran this on EMU71. Before trying to unravel this myself
I thought I would ask if there was an update to this article and code,
which I missed!
Your response would be appreciated.
Thanks
John
Running on EMU71 I obtain
-(241277/16168/e)^(1/2) 92
Question for Valentin; Identifying Constants
|
|
« Next Oldest | Next Newest »
|
▼
Post: #18
05-22-2012, 06:10 AM
▼
Post: #19
05-22-2012, 06:23 AM
Quote: Strange. I do get the result I gave in my article, here's a verbatim copy & paste from my working Emu71 created just a minute ago:
>CAT Compare this to your own listing or better yet, enter this listing directly into Emu71 and see if it works. If it still doesn't please feel free to contact me again and we'll definitely work it out.
Thanks for your interest and regards.
Edited: 22 May 2012, 6:25 a.m. ▼
Post: #20
05-22-2012, 06:41 AM
Hi Valentin, thanks for your really quick response - Appreciated :) ▼
Post: #21
05-22-2012, 07:04 AM
Quote: I suspect that copy & paste isn't working for you, for whatever reason. You can ascertain that by listing the program on the Emu71 emulated 80x25 display and comparing it visually with the listing I posted. - if there are no differences then we'll explore further but - if there are differences this means paste doesn't work realiably on your Emu71. In that case do the following (taken from J.F.'s documentation): 1) copy your source file [the listing I posted, no blank lines] to "emu_in.dat", 2) in Emu71, write a small program to enter lines from the DOSLINK device and write to a TEXT file:
10 DESTROY ALL @ DELAY 0,0 @ DIM A$[100] Run it and when the program stops on ENTER statement (no more lines to ENTER), close the file with ASSIGN#1 to * Then TRANSFORM it into BASIC and there you are. See if that works for you.
Regards from V.
▼
Post: #22
05-22-2012, 02:38 PM
Hi Valentin, I carefully copied and pasted your program in Emu71 and I get the same result as John, i.e. -10553/12243*e 46.
Kind regards, Jeroen ▼
Post: #23
05-22-2012, 03:49 PM
Hi, Jeroen:
Quote: Weird. Please post here the exact verbatim list of the code as directly grabbed from your Emu71 display (i.e. the code you're running which produces the weird result), for me to inspect and try in my copy of Emu71. I'll use a comparison program to avoid human error so this way I'll be able to see if there's some difference, any difference. Further action will depend on the result of the above. For now I suspect of some problem with the copy-paste procedure but we'll see when you do the above, if you're so kind. Thanks for your interest and
Regards from V.
Post: #24
05-22-2012, 04:37 PM
>degrees J-F ▼
Post: #25
05-22-2012, 05:36 PM
Quote:
LOL ! ... XD That's it, of course, but you know what, J.F. ? I was thinking that it might be that old problem of some versions of Emu71 missing characters when pasting text (a program listing or commands) to them.
Matter of fact, paste still doesn't work 100% ok, at least not in my version. It has the following quirks:
- some frequent text combinations are interpreted as if they were 'escape' sequences missing characters altogether, i.e.: pasting "10 FOR I=1 TO 10 @ A=2^I+5*B(I) @ NEXT I" results in "10 for i=1 to 10 @ a=2+5*b(i) @ next i" and the power of 2 (2^I) is silently changed to a simple "2", which usually results in the wrong results afterwards. That said, any hope of an Android version of Emu71 specifically tailored or at least fine-tuned to the underlying Arm processor ? That failing, any newer version of Emu71, ideally faster that the one I have ? I'm using Emu71 to successfully solve Project Euler problems, a sizable number of them so far, in dire competition against C++, Java, Haskell, Python, Mathematica, Assembler, etc. running on powerful hardware so every little bit of speed does help ! ... :D Thank you very much and best regards from V.
▼
Post: #26
05-22-2012, 05:58 PM
Quote: Try the lowercase command (LC) on Emu71, as I did in my post below. I got home minutes ago and only overlooked the posts, otherwise I would not have mentioned the DEGREES/RADIANS issue. Best regards, Gerson.
Post: #27
05-23-2012, 02:33 PM
The ^A, ^E, ^I, ^O and ^U sequences are not correctly handled by the paste operation, for some unknown reason. I was not able to fix it. Of course, manually keying-in ^I and so on, is no problem. When pasting a text file created by an external editor, a possible workaround is to insert a space after the ^ character. Regarding, speed, the lastest version (2.41) provides a modest speed improvement of 5-10%. Thanks for your interest in Emu71/DOS! J-F
▼
Post: #28
05-23-2012, 04:56 PM
No problem here, unless I am missing something. The lines 50 and 60 below have been simply copied from Notepad and pasted into the Emu71 window:
Gerson. ▼
Post: #29
05-23-2012, 05:20 PM
Hi, Gerson: This is what I get when I try your example (which I copied to Notepad from your post, then re-selected it in Notepad and copied to the Emu71 window):
Emu71: HP-71B & HP-IL system emulator J-F GARNIER 1996, 2006
Regards from V.
▼
Post: #30
05-23-2012, 07:45 PM
Hello Valentin, I've repeated my procedure on Windows XP and obtained your exact result:
>50 X=2^3
Back to Windows Vista, language bar set to PT, Português (Brasil), I got >STOP
Changing the language bar to EN, English (United States), and copying and pasting my original example again gives >50 X=2^3I haven't tested this on Windows 7 yet. Best regards, Gerson.
▼
Post: #31
05-24-2012, 03:58 PM
Hi, Gerson: Seems you've nailed it. Perhaps J.F. can do something about it now that the problem has been shown to be related to the Windows locale.
Thanks and best regards from V.
Post: #32
05-22-2012, 05:40 PM
Quote: In Windows Vista I don't need such program. I just set lowercase in Emu71 (by typing LC) and select EN (English) in the language bar, instead of my default PT (Portuguese). Copy & Paste works nicely then. By the way, in RADIANS mode I get -1/Sin((11/13/Pi^2)^(1/3)) 100But in DEGREES mode I get Best regards, Gerson.
Post: #33
05-23-2012, 02:20 AM
Thanks to Valentin,Gerson and JF. I can't believe I did not try switching to RAD. ▼
Post: #34
05-23-2012, 04:24 AM
Quote:
Quote: Yes, no problem at all, I think it is the intended, normal behavior. Just press [End line] and there you are, no need to close Emu71 or anything.
Regards from V.
|