Subject: Re: Infinite loop calculating a series value > I'm trying to calculate the value of this expresion: ABS(sum(K=1, infty, ((1+i)/2)^k)) the result should be 1 but my calculator enter in a infinite loop. How > can I fix it? > I don't have my HP49G+ with me at the moment, but you could try: ABS(sum(K=1, infty, a^k)) and substitute a=(1+i)/2 afterwards. If that example also hangs, then the expected value of the sum is a/(1-a). You should report the hang as a bug, although I'm not sure where HP49/50 bugs are tracked nowadays. Bhuvanesh === Subject: Re: Infinite loop calculating a series value > I'm trying to calculate the value of this expresion: ABS(sum(K=1, infty, ((1+i)/2)^k)) the result should be 1 but my calculator enter in a infinite loop. How > can I fix it? > It's not an infinite loop. The calculator is doing the right thing. You've been impatient. Next time sit down and wait until some thing starts counting down from infinity. Meanwhile you can kill time asking funny questions :) === Subject: Re: Infinite loop calculating a series value posting-account=Rr1BpAoAAAC35AO1lUfz6ZegzjxdWL8v Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) I'm trying to calculate the value of this expresion: ABS(sum(K=1, infty, ((1+i)/2)^k)) the result should be 1 but my calculator enter in a infinite loop. How > can I fix it? > It's not an infinite loop. The calculator is doing the right thing. > You've been impatient. Next time sit down and wait until some thing > starts counting down from infinity. Meanwhile you can kill time asking > funny questions :) that's rather ends counting down not starts ;) === Subject: Announcement: Print to an HP 82240 from a Palm I just released a free program (BSD licensed) that lets you print to HP 82240A and 82240B printers from a Palm OS handheld: http://redeye.wikidot.com/ There have been a few questions here about the 82240 printing protocol and using it with a Palm, and I've included some implementation details on the website. Barak === Subject: HP-35s INPUT(I) FUNCTION BROKEN? On page 14-22/23 of the HP-35s User Guide, it is stated that the Indirect Addressed Variables can be used with the STO, RCL, VIEW, and INPUT commands. When I try to use INPUT(I) in a program, I get an INVALID (I) error message. I have checked that the indirect variable was created properly by a preceding STO(I) command, and of course the calculator let me enter the INPUT(I) command into program memory in the first place. What's up with this error message? Is this a malfunction in my calculator that I can return it for warantee replacement? Or is this a bug in all of them? If the owner's manual says the function is supposed to be available, and the calculator actually allows the command to be placed into a program, then it certainly seems like it ought to work. I sent an inquiry about this to HP Customer Support and got back a totally worthless 1 sentence reply, that said only that questions about programming are not included in Tech Support. HP, did you even read my inquiry? My question isn't about programming! It's about a function that your device is supposed to have, and the owner's manual says it's supposed to be there, but it's BROKEN. === Subject: Re: HP-35s INPUT(I) FUNCTION BROKEN? > On page 14-22/23 of the HP-35s User Guide, it is stated that the > Indirect Addressed Variables can be used with the STO, RCL, VIEW, and > INPUT commands. When I try to use INPUT(I) in a program, I get an > INVALID (I) error message. I have checked that the indirect > variable was created properly by a preceding STO(I) command, and of > course the calculator let me enter the INPUT(I) command into program > memory in the first place. What's up with this error message? Is > this a malfunction in my calculator that I can return it for warantee > replacement? Or is this a bug in all of them? If the owner's > manual says the function is supposed to be available, and the > calculator actually allows the command to be placed into a program, > then it certainly seems like it ought to work. I sent an inquiry about this to HP Customer Support and got back a > totally worthless 1 sentence reply, that said only that questions > about programming are not included in Tech Support. HP, did you even > read my inquiry? My question isn't about programming! It's about a > function that your device is supposed to have, and the owner's manual > says it's supposed to be there, but it's BROKEN. === Subject: Re: HP-35s INPUT(I) FUNCTION BROKEN? So here is a thread (with contributions by reth): 35S INPUT (I) bug http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv017.cgi?read=120494 The very last post says: Re: 35S INPUT (I) bug in response to message #29 by Paul Dale INPUT (I) works in a program, but only if register I contains a value between -26 (register Z) and -1 (register A). The manual, as Gene [Wright] pointed out, is erroneous by implying that all 800 indirect registers can be used with INPUT (I). General bug list: === Subject: Re: Announcement: Print to an HP 82240 from a Palm AppleWebKit/523.12.2 (KHTML, like Gecko) Version/3.0.4 Safari/523.12.2,gzip(gfe),gzip(gfe) > I just released a free program (BSD licensed) that lets you print to HP > 82240A and 82240B printers from a Palm OS handheld: http://redeye.wikidot.com/ There have been a few questions here about the 82240 printing protocol > and using it with a Palm, and I've included some implementation details > on the website. Barak Fun! Works great. And my Tunsten E2 seems to work better (can get farther away) than my 28S and 49g+ when printing to my 82240A (yah, I know, the infrared is crippled to prevent cheating in the === > Do you know where ->Q is to be found? It is a built-in command; in HP48G[X][+] it is in L-shift Symbolic NXT menu (93.02 MENU in all HP48G/49G/50G series) along with related command ->Qpi On the 49G series, the XQ command also performs ->Qpi (besides clearing flags -2, -102 and -105, which specify symbolic constants and Exact mode) The Advanced Users Reference (AUR) points out: The rational result is a best guess, since there might be more than one rational expression consistent with the argument. ->Q finds a quotient of integers that agrees with the argument to within the number of decimal places specified by the display format mode. Thus you get varying answers according to various display modes (FIX, SCI, ENG) There are various arguments about what smallest fraction or best guess actually means, even after considering the above, e.g. see DEC2FRAC (by Joe Horn) and NEW2Q (by HP) in HP48 Goodies Disk #3, and also variations in the success of various programs in finding them: Individual downloads: http://www.hpcalc.org/search.php?query=dec2frac [Joe Horn] http://www.hpcalc.org/search.php?query=new2q [not HP's original] http://www.hpcalc.org/search.php?query=d2f [another by Joe Horn] Complete Goodies Disk #3 (with HP's original NEW2Q): http://www.hpcalc.org/details.php?id=234 http://www.hpcalc.org/hp48/compilations/horn/horn3.zip DEC2FRAC and NEW2Q both use an HP48-specific ROM address and SYSEVAL, which one might replace by / SWAP + + ' SWAP + STR-> 48/49: Best Fraction Challenge [this thread goes beyond the above, and contains 149 posts!] [r->] [OFF] === === Subject: Re: Quonos? Bad 50g key [stainless steel cars] > There was also a stainless steel Lincoln convertible. > I had the privilage of walking past it once a week as a kid > during the late 1960s.... > We parked in a parking garage each Sunday, and a high-end executive > of the Allegheny-Ludlum Corporation drove the car... That was the company which showed off its product using the cars which it had Ford make for them. > The executive worked at the time in the One Oliver building > a block away, where the company at the time was HQed. This web page refers to both the car and Allegheny-Ludlum, but all pix are unfortunately gone :( http://www.squarebirds.org/stainless66lincoln/ > I understand the car now is shown each year > at the Carlisle, PA car show. Pennsylvania was the great steel state http://www.statemuseumpa.org/steel-intro.html Allegheny Ludlum Stainless Steel continues... http://www.alleghenyludlum.com/ A glimpse of that 1967 Lincoln Convertible may be seen at this previously posted link: http://www.alleghenyludlum.com/pages/companyinfo/stainlesscars.asp http://www.alleghenytechnologies.com/ludlum/pages/companyinfo/stainlesscars. asp Quote from above page, about another model: Since 1960, when two stainless steel Ford Thunderbirds were introduced, they have been displayed throughout the United States and Europe. The two Thunderbirds came off the Wixom, Michigan production line on July 11, 1960, and each has traveled over 100,000 miles, demonstrating the durability and timeless beauty of stainless steel. With the exception of the body skin, bumpers and grille, which are made of T302 stainless steel, every other component is standard 1960 Thunderbird equipment. Also included is the first T409 solid stainless steel muffler released on a production vehicle. Both cars still have their original mufflers and T304 exhaust pipes after 25 years on the road! --- It's a good thing they aren't operated via calculator keyboards :) === Subject: Re: Quonos? Bad 50g key [stainless steel cars] Re this page: > http://www.alleghenyludlum.com/pages/companyinfo/stainlesscars.asp Picture from that page: http://www.alleghenytechnologies.com/ludlum/images/threecars.jpg Better picture: http://www.alleghenytechnologies.com/ludlum/images/2car.gif === Subject: Re: Quonos? Bad 50g key [stainless steel cars] > http://www.alleghenytechnologies.com/ludlum/images/2car.gif Thats the car. i rememebr many times we saw the car in the gareage and it was kinda dirty....we thought that was a bit ironic, driving such a spcial car and letting it be dirty. === Subject: Re: Quonos? Bad 50g key [stainless steel cars] Another photo of the three Allegheny Ludlum stainless steel car models (1936 Deluxe Sedan, 1960 Thunderbird, 1967 Lincoln Continental Convertible), at a museum: http://www.squarebirds.org/stainless_steel_cars.htm http://www.squarebirds.org/images/3stainless_steel_cars.jpg Video: http://www.squarebirds.org/images/stainless_cars.mpg Previous photo: http://www.alleghenytechnologies.com/ludlum/images/2car.gif The Crawford Auto-Aviation Museum's current web site appears a bit unfinished: http://www.case.edu/buildings/cultural/auto_aviation.html http://www.wrhs.org/index.php/crawford http://wrhs.vilocity.com/index.php/crawford/carlist (incomplete, no photos at present) Anyone remember these? http://wrhs.vilocity.com/index.php/crawford/recentacquisitions Quote from squarebirds: The first stainless steel car was proposed by the Allegheny Ludlum Steel Division in 1935 to Ford Motor Company and six 1936 Ford Model 68 Tudor Deluxe sedans were produced. The idea was repeated at the end of the run of 1958 to 1960 Thunderbirds, since those cars in stock form used a great deal of stainless steel for their trim. Two 1960 Thunderbirds were built in stainless steel. It was necessary to wait until the end of the production run, because the harder stainless steel would wipe out the stamping dies. In 1966, three 1966 Lincoln convertibles were made in stainless steel. An example of each of these cars can be seen at the Crawford Auto-Aviation museum in Cleveland, Ohio. Speaking of wiping out the stamping dies, did the long production run of any older HP calculator series wear out the plastic molds used to make them? Nowadays, alas, the end product tends to wear out first. === === Subject: Re: HP35 >My company purchased an HP 35 for use in validity testing only I am >having trouble programing it. ?I have the formulas and two of them are >programmed into the calculator correctly however one of them is not >working. ?My question is....Is this calculator compatible with any >formula??? Yes, this calculator is compatible with any formula. ?Sometimes > formulas need to be rewritten in order to work with solvers like HP's > Solver. > I need the following programmed: >Percentile of Strength >Coefficient of Variation >Functional Strength Deficit >Percent Max Heart Rate >Percent Difference Can you type in the formula that's working, the one that isn't > working, and a couple of examples for us to try? -- > Ray Hey are some examples of the formulas I need programmed...... P=((T-B)/(H-L))(R-L) +B xon-1/x(with a line above it) x 100 D=(F-S)/F)x 100 > I do not own a hp35 I have a HP33s similar but different keystrokes These types of programs are most easily handled with the solver. Read the manual section pertaining to writing solver program. Also I found the following tutorials on the HP site http://h20331.www2.hp.com/hpsub/cache/532209-0-0-225-121.html http://h20331.www2.hp.com/Hpsub/downloads/35 24 Formula Solver 1.pdf http://h20331.www2.hp.com/Hpsub/downloads/35 25 Formula Solver 2.pdf these should get you started === Subject: Think Lithium! Are you doing heavy math every day and worry about empty battery? I changed my good old 4Mhz HP48SX with 1.1MB Ram to Lithium-battery. They are chinese second source from old Nokia 9300. http://www.criseis.ruhr.de/batt1.jpg http://www.criseis.ruhr.de/batt2.jpg Fit very well and in 1-2 years I can say how long I can use between charging. Olaf p.s: Of course you need a selfmade lithium battery charger, but that is to complicate for this newsgroup. .-) === Subject: Re: Think Lithium! > p.s: Of course you need a selfmade lithium battery charger, but that > is to complicate for this newsgroup. .-) If you use the MAX 1555, like I did in my lithium powered 49g+ simple. I used the usb input, but it can also take any DC source between 3.7 and 7 volts. I like that you fit the whole thing in the battery compartment. Good job. -Jonathan === Subject: Re: Think Lithium! >If you use the MAX 1555, like I did in my lithium powered 49g+ >simple. I used the usb input, but it can also take any DC source >between 3.7 and 7 volts. I charge my battery with a selfmade charger I build with a microcontroller that can charge/discharge, measure Ri, Capacity and so on. If I like to build something inside of calculator I can recomend BQ24108 from Texas. It did not waste so much space and you can use 6-16V. That is good for charging in cars. I used it for my PDA powersupply: http://www.criseis.ruhr.de/powerbox/powerbox.html Perhaps you can steal the idea or a part of the layout, because it is complicate. Olaf === Subject: Re: HP48S Schematic <47d495fe$0$47168$892e0abb@auth.newsreader.octanews.com> posting-account=wcRVPwkAAACV9qEmJuiPuuML0GXuIOZ6 4.90),gzip(gfe),gzip(gfe) >> Has anyone developed a schematic for the HP48S/SX? >> I've relied on the fine HP48G schematic that Mr. Flipse has done, but >> have found that a HP48SX (sn3229S...) has significantly different pc >> layout and components that the HP48G. >> This HP48SX has a Saturn IC that is not in a conventional plastic Quad >> Flat Package - it is some type of non-square chip carrier type >> package. ÊI would like to relate these pins to the pins of the QFP >> used in the HP48G (in particular, the 'ON'' key input.). Êi would >> rather avoid >> Any other details on the HP48SX Schematic/PC layout would be >> appreciated. >> TomCee > As nobody has responded, pehaps I should ask a related question: > ÊIs anyone interested in a schematic/component layout for the HP48S. > I realize the schematic is somewhat similar to the HP48G series, > although the pinouts on the processor are very different as the IC is > a different package. ÊAlso, finding the appropriate signals on the > bottom side of the board is very different from the HP48G, so this > information could also be helpful. > TomCee > It's been a long time, but i think the schematic for the sx is >> available, it was in a text file by a french autor. >> Steve Sousa- Hide quoted text - > - Show quoted text - The schematic by Marcel Flipse was the on I had referred to is of the > HP48G series. I understood that. The files i was refering to werehttp://www.hpcalc.org/hp48/docs/misc/hphard.zip > andhttp://www.hpcalc.org/hp48/docs/programming/saturnd.zip > but they only have the info on the led for the sx (i knew it had someting!) > So, if you have any extra info please post it, i'll apreciate it. Steve Sousa- Hide quoted text - - Show quoted text - Some small steps, but I've posted scans of the HP48SX pcb here: and I've scanned the conductive keyboard 'underlay' from a HP48G (I presume the HP48S is similar) here: I've also labelled the address lines at the keyboard connector on the main pcb (HP48G) bottom: === Subject: input command I have problem, pleas help me How storing data (string) from HP50 into directory on an SD card with progran, not hand make === Subject: Re: input command posting-account=zYTuBQoAAAC_bXzGjGVT5rxv8bOnpefP Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) > I have problem, pleas help me > How storing data (string) from HP50 into directory on an SD card with > progran, not hand make how to use it: http://sense.net/~egan/hpgcc/#String%20to%20File If you just want the binaries, then: http://sense.net/~egan/hpgcc/#Sidebar:%20%20Play%20First! === Subject: Re: input command posting-account=Q2CEjQoAAACue5ZDDhUeRzv1w0u8hxZE Gecko/2008030714 Firefox/3.0b4,gzip(gfe),gzip(gfe) > How storing data (string) from HP50 into directory on an SD card with > progran, not hand make When you store a text string into the SD card, it will put a little bit of text at the beginning indicating a file type to the calculator. When you open the file on the computer, there are a few characters at the beginning that need to be erased. If you don't mind that, then do this: String to store on SD card. :3:FOLDER1/FOLDER2/MY STRING.TXT STO That will do what you'd like. TW === Subject: Re: input command posting-account=mOg34goAAACq8ZMWmEbOnQEkdDVXuNOx CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) > How storing data (string) from HP50 into directory on an SD card with > progran, not hand make When you store a text string into the SD card, it will put a little > bit of text at the beginning indicating a file type to the > calculator. ÊWhen you open the file on the computer, there are a few > characters at the beginning that need to be erased. ÊIf you don't mind > that, then do this: String to store on SD card. > :3:FOLDER1/FOLDER2/MY STRING.TXT > STO That will do what you'd like. TW This example is almoust OK my program make this ROW wrong is and empty space how can I solve this problem whit user rpl program === Subject: Re: input command posting-account=Q2CEjQoAAACue5ZDDhUeRzv1w0u8hxZE Gecko/2008030714 Firefox/3.0b4,gzip(gfe),gzip(gfe) > This example is almoust OK The example is perfect. You are either typing it in wrong, or trying to put the TAG into a string. Make the string first, then tag it for port 3. 3 ->TAG STO The -> is the little right arrow character. TW === Subject: Re: input command posting-account=mOg34goAAACq8ZMWmEbOnQEkdDVXuNOx CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) > This example is almoust OK The example is perfect. ÊYou are either typing it in wrong, or trying > to put the TAG into a string. ÊMake the string first, then tag it for > port 3. 3 > ->TAG > STO The -> is the little right arrow character. TW thenk you wizard word is TAG command super!!!!! I'm surveyor and using Leica instruments and solve problems on work with user rpl programs Are you using Builder program? I need inform mask with six rows for input points (Number, y,x,z, stac., radij) nice day === Subject: Re: input command posting-account=t34_8goAAAAjmfsIJ-UaPFYVNpZqEooD Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) > I have problem, pleas help me > How storing data (string) from HP50 into directory on an SD card with > progran, not hand make i would use the sdfiler 1.xx and a little user rpl if necessary. jm === Subject: Re: input command posting-account=t34_8goAAAAjmfsIJ-UaPFYVNpZqEooD Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) I have problem, pleas help me > How storing data (string) from HP50 into directory on an SD card with > progran, not hand make i would use the sdfiler 1.xx and a little user rpl if necessary. > jm btw === Subject: In 50g, how to change laplace vx to s or t posting-account=mG1K0ggAAADsAVIjUVaMD3NGjKePUWPx .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2),gzip(gfe),gzip(gfe) HP50g compute LAP(X) =1/X^2 but I want to compute LAP(t) = 1/s^2 Help me¤Ì¤[CapitalEth] === Subject: Re: HPGCC related ... posting-account=y6ooGwkAAACoZd171Nq6oGIjQC5mB4Q9 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) I want to close this thread by clarifying this situation: <... The entire file is: > ----------------------------------- > #include int main() > { > Ê Ê Ê Ê float f; > Ê Ê Ê Ê double d; Ê Ê Ê Ê clear screen(); //clear the screen Ê Ê Ê Ê scanf(%f,&f); Ê// should work but doesn't > Ê Ê Ê Ê scanf(%lf,&d); // works as expected > Ê Ê Ê Ê scanf(%f,&d); Ê// should fail but doesn't Since HPGCC does not support floats, %f is mapped to doubles. This explains why the 1st scanf fails (you need to provide a pointer to a double, not a float), and why the 3rd option works. Ê Ê Ê Ê printf(%f, %f, %fn,f,d,d); If you want to write correct ANSI-C, this should be: printf(%f %lf %lfn,f,d,d); It only worked because %f is also mapped to doubles in HPGCC, being equivalent to %lf. On HPGCC, you should have written: printf(%lf %lf %lfn,(double)f,d,d); Claudio === Subject: Re: HPGCC related ... posting-account=y6ooGwkAAACoZd171Nq6oGIjQC5mB4Q9 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) If you want to write correct ANSI-C, this should be: printf(%f %lf %lfn,f,d,d); It only worked because %f is also mapped to doubles in HPGCC, being > equivalent to %lf. On HPGCC, you should have written: printf(%lf %lf %lfn,(double)f,d,d); Disregard this part. It doesn't clarify anything... %f = double. %lf = long double in ANSI-C, as well as in HPGCC. Claudio === Subject: Re: HPGCC related ... posting-account=gdzz3QoAAACN-CJ2JCs1erj4jytS1FOX InfoPath.1),gzip(gfe),gzip(gfe) I am getting more curious!? I really would like to know which version of the HPGCC compiler you > are using and the header file. HPGCC VERSION: 2.0 > HPGCC REVISION: 563 The entire file is: > ----------------------------------- > #include int main() > { > Ê Ê Ê Ê float f; > Ê Ê Ê Ê double d; Ê Ê Ê Ê clear screen(); //clear the screen Ê Ê Ê Ê scanf(%f,&f); Ê// should work but doesn't > Ê Ê Ê Ê scanf(%lf,&d); // works as expected > Ê Ê Ê Ê scanf(%f,&d); Ê// should fail but doesn't Ê Ê Ê Ê printf(%f, %f, %fn,f,d,d); Ê Ê Ê Ê WAIT CANCEL; Ê Ê Ê Ê return 0;} ----------------------------------- In any case, I would highly recommend using sat pop real(), > sat push real(). > The HPStack library has: hps pop real(), hps push real(), > hps pick real(). I really wonder if there is a more > simple command to implement on HPGCC than scanf or printf? Hmmm. ÊI would have thought that these functions would be two of the > largest functions to implement. -wes I have tried your code and none of my enteries could be printed on the screen. I really want to know what is different with your way of doing it and mine. Besides, your suggestion about using the stack library. It is working, but you can realize that it is working when you QUIT the program. That is, you see all your displayed data in stack. As you can surely understand without my saying that, after calling CLEAR SCREEN() you lost all your visual contact with the STACK? Am I wrong? There is no use to print values to stack after calling the CLEAR SCREEN() function. I am currently entering my variables as strings. Then I use the atof() function. This is working as far as input is concerned. I am still having problems to display floats or doubles on screen. I have used sprintf() fuction and it is not working properly. It behaves just like printf() function. All I can have is some numbers which I couldn't be able to give any meaning to them. My plan was to convert the float or double into string and print the converted string on screen. In worst case I will code a small function to convert floats or doubles into strings. If I have the enough amount of memory, though. /Onur === Subject: Re: HPGCC related ... posting-account=y6ooGwkAAACoZd171Nq6oGIjQC5mB4Q9 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) >I am getting more curious!? > I really would like to know which version of the HPGCC compiler you >are using and the header file. HPGCC VERSION: 2.0 > HPGCC REVISION: 563 The entire file is: > ----------------------------------- > #include int main() > { > Ê Ê Ê Ê float f; > Ê Ê Ê Ê double d; Ê Ê Ê Ê clear screen(); //clear the screen Ê Ê Ê Ê scanf(%f,&f); Ê// should work but doesn't > Ê Ê Ê Ê scanf(%lf,&d); // works as expected > Ê Ê Ê Ê scanf(%f,&d); Ê// should fail but doesn't Ê Ê Ê Ê printf(%f, %f, %fn,f,d,d); Ê Ê Ê Ê WAIT CANCEL; Ê Ê Ê Ê return 0;} ----------------------------------- In any case, I would highly recommend using sat pop real(), > sat push real(). > The HPStack library has: hps pop real(), hps push real(), > hps pick real(). > I really wonder if there is a more >simple command to implement on HPGCC than scanf or printf? Hmmm. ÊI would have thought that these functions would be two of the > largest functions to implement. -wes I have tried your code and none of my enteries could be printed on the > screen. I really want to know what is different with your way of doing > it and mine. Besides, your suggestion about using the stack library. It is working, > but you can realize that it is working when you QUIT the program. That > is, you see all your displayed data in stack. As you can surely > understand without my saying that, after calling CLEAR SCREEN() you > lost all your visual contact with the STACK? Am I wrong? There is no > use to print values to stack after calling the CLEAR SCREEN() > function. I am currently entering my variables as strings. Then I use the atof() > function. This is working as far as input is concerned. I am still > having problems to display floats or doubles on screen. I have used > sprintf() fuction and it is not working properly. It behaves just like > printf() function. All I can have is some numbers which I couldn't be > able to give any meaning to them. My plan was to convert the float or > double into string and print the converted string on screen. In worst > case I will code a small function to convert floats or doubles into > strings. If I have the enough amount of memory, though. /Onur- Hide quoted text - - Show quoted text - First of all, there are no known problems displaying floating point numbers on the screen, so the problem is in your code. Second, you probably don't deserve my help due to your arrogance in posts above, but here it is anyway... To print a double: double mydouble; printf(%lf,mydouble); to print a float: float myfloat; printf(%lf,(double)myfloat); to read a number from the console: double mydouble; scanf(%lf,&mydouble); and if you want to read it as float: double temp; float myfloat; scanf(%lf,&temp); myfloat=temp; The forced conversion to double is required because we dropped support for low-precision floats in HPGCC, in favor of higher-precision doubles and even higher decNumbers. When you use variable-argument functions, it is your responsibility to provide proper argument type conversion. All math functions use doubles internally, so using float will only add unnecessary overhead to your calculations, though saving storage space. Claudio === Subject: When compute laplace In 50g, how to change vx(X) to s or t posting-account=mG1K0ggAAADsAVIjUVaMD3NGjKePUWPx .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2),gzip(gfe),gzip(gfe) For example, HP50g compute LAP(X) =1/X^2 but I want to compute LAP(t) = 1/s^2 Help me¤Ì¤[CapitalEth] === Subject: Re: When compute laplace In 50g, how to change vx(X) to s or t > For example, > HP50g compute LAP(X) =1/X^2 > but I want to compute LAP(t) = 1/s^2 > Help me???? One way is to build a program to include appropriate changes of variables. For example, put a function in terms of variable 't' on the stack then execute the program << 't' RCLVX = SUBST LAP RCLVX 's' = SUBST >> to get the transform as function of variable 's'. You can then use the program << 's' RCLVX = SUBST LAPI RCLVX 't' = SUBST >> to reverse the process on a function whose variable is 's', getting the inverse transform as a function of 't'. Save both programs with appropriate names if you will be needing them repeatedly. === Subject: In 50g, how to change laplace vx to s or t posting-account=mG1K0ggAAADsAVIjUVaMD3NGjKePUWPx .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2),gzip(gfe),gzip(gfe) For example, HP50g compute LAP(X) =1/X^2 but I want to compute LAP(t) = 1/s^2 and how compute derivative, dy(t)/dt as LAP(d1y(X)) = s*Y(s) - y(0) Help me¤Ì¤[CapitalEth] 1409 === Subject: Re: Announcement: Print to an HP 82240 from a Palm posting-account=DeeOcQoAAAARSjhcIJoqA9PKKlmWYbhT AppleWebKit/523.12.2 (KHTML, like Gecko) Version/3.0.4 Safari/523.12.2,gzip(gfe),gzip(gfe) > I just released a free program (BSD licensed) that lets you print to HP > 82240A and 82240B printers from a Palm OS handheld: http://redeye.wikidot.com/ There have been a few questions here about the 82240 printing protocol > and using it with a Palm, and I've included some implementation details > on the website. Barak Fun! Works great. And my Tunsten E2 seems to work better (can get farther away) than my 28S and 49g+ when printing to my 82240A (yah, I know, the infrared is crippled to prevent cheating in the === > Do you know where ->Q is to be found? It is a built-in command; in HP48G[X][+] it is in L-shift Symbolic NXT menu (93.02 MENU in all HP48G/49G/50G series) along with related command ->Qpi On the 49G series, the XQ command also performs ->Qpi (besides clearing flags -2, -102 and -105, which specify symbolic constants and Exact mode) The Advanced Users Reference (AUR) points out: The rational result is a best guess, since there might be more than one rational expression consistent with the argument. ->Q finds a quotient of integers that agrees with the argument to within the number of decimal places specified by the display format mode. Thus you get varying answers according to various display modes (FIX, SCI, ENG) There are various arguments about what smallest fraction or best guess actually means, even after considering the above, e.g. see DEC2FRAC (by Joe Horn) and NEW2Q (by HP) in HP48 Goodies Disk #3, and also variations in the success of various programs in finding them: Individual downloads: http://www.hpcalc.org/search.php?query=dec2frac [Joe Horn] http://www.hpcalc.org/search.php?query=new2q [not HP's original] http://www.hpcalc.org/search.php?query=d2f [another by Joe Horn] Complete Goodies Disk #3 (with HP's original NEW2Q): http://www.hpcalc.org/details.php?id=234 http://www.hpcalc.org/hp48/compilations/horn/horn3.zip DEC2FRAC and NEW2Q both use an HP48-specific ROM address and SYSEVAL, which one might replace by / SWAP + + ' SWAP + STR-> 48/49: Best Fraction Challenge [this thread goes beyond the above, and contains 149 posts!] [r->] [OFF] === Subject: Re: Quonos? Bad 50g key [stainless steel cars] I know some Chrysler cars that still have the original > stainless steel exhaust systems after forty years. > They still look brand new! > They could build cars a lot sturdier than they do now. Stainless steel Fords (1936!) > http://www.alleghenyludlum.com/pages/companyinfo/stainlesscars.asp > http://www.deloreanmotorcar.com/dmc/otherss.htm The DeLorean: > http://www.babbtechnology.com/pics/3472images/outside/back_left.JPG > http://www.babbtechnology.com/thecar/anatomy.htm > http://www.babbtechnology.com/books/SSI/index.htm > http://en.wikipedia.org/wiki/De_Lorean_DMC-12 > http://en.wikipedia.org/wiki/De_Lorean_Motor_Company > http://www.delorean.com/ There was also a stainless steel Lincloln convertable, either 1961 or 1962, I forget which year exactly. I had the privilage of walking past it once a week as a kid during the late 1960s.... We parked in a parking grage each Sunday, and a high-end executive of the Allegheny-Ludlum Corporation drove the car and he parked it on the first fllor near where one paid the praking fees for the garage...(it was mellon square garge in Pittsburgh by the way). the executive worked at the time in the One Oliver building a block away whyere the company at the time was HQed. So it back then was a daily driver I understand the car now is shown each year at the Carlisle, PA car show. === Subject: Re: Quonos? Bad 50g key [stainless steel cars] > There was also a stainless steel Lincoln convertible. > I had the privilage of walking past it once a week as a kid > during the late 1960s.... > We parked in a parking garage each Sunday, and a high-end executive > of the Allegheny-Ludlum Corporation drove the car... That was the company which showed off its product using the cars which it had Ford make for them. > The executive worked at the time in the One Oliver building > a block away, where the company at the time was HQed. This web page refers to both the car and Allegheny-Ludlum, but all pix are unfortunately gone :( http://www.squarebirds.org/stainless66lincoln/ > I understand the car now is shown each year > at the Carlisle, PA car show. Pennsylvania was the great steel state http://www.statemuseumpa.org/steel-intro.html Allegheny Ludlum Stainless Steel continues... http://www.alleghenyludlum.com/ A glimpse of that 1967 Lincoln Convertible may be seen at this previously posted link: http://www.alleghenyludlum.com/pages/companyinfo/stainlesscars.asp http://www.alleghenytechnologies.com/ludlum/pages/companyinfo/stainlesscars. asp Quote from above page, about another model: Since 1960, when two stainless steel Ford Thunderbirds were introduced, they have been displayed throughout the United States and Europe. The two Thunderbirds came off the Wixom, Michigan production line on July 11, 1960, and each has traveled over 100,000 miles, demonstrating the durability and timeless beauty of stainless steel. With the exception of the body skin, bumpers and grille, which are made of T302 stainless steel, every other component is standard 1960 Thunderbird equipment. Also included is the first T409 solid stainless steel muffler released on a production vehicle. Both cars still have their original mufflers and T304 exhaust pipes after 25 years on the road! --- It's a good thing they aren't operated via calculator keyboards :) === Subject: Re: Quonos? Bad 50g key [stainless steel cars] Re this page: > http://www.alleghenyludlum.com/pages/companyinfo/stainlesscars.asp Picture from that page: http://www.alleghenytechnologies.com/ludlum/images/threecars.jpg Better picture: http://www.alleghenytechnologies.com/ludlum/images/2car.gif === Subject: Re: Quonos? Bad 50g key [stainless steel cars] > http://www.alleghenytechnologies.com/ludlum/images/2car.gif Thats the car. i rememebr many times we saw the car in the gareage and it was kinda dirty....we thought that was a bit ironic, driving such a spcial car and letting it be dirty. === Subject: Re: Quonos? Bad 50g key [stainless steel cars] Another photo of the three Allegheny Ludlum stainless steel car models (1936 Deluxe Sedan, 1960 Thunderbird, 1967 Lincoln Continental Convertible), at a museum: http://www.squarebirds.org/stainless_steel_cars.htm http://www.squarebirds.org/images/3stainless_steel_cars.jpg Video: http://www.squarebirds.org/images/stainless_cars.mpg Previous photo: http://www.alleghenytechnologies.com/ludlum/images/2car.gif The Crawford Auto-Aviation Museum's current web site appears a bit unfinished: http://www.case.edu/buildings/cultural/auto_aviation.html http://www.wrhs.org/index.php/crawford http://wrhs.vilocity.com/index.php/crawford/carlist (incomplete, no photos at present) Anyone remember these? http://wrhs.vilocity.com/index.php/crawford/recentacquisitions Quote from squarebirds: The first stainless steel car was proposed by the Allegheny Ludlum Steel Division in 1935 to Ford Motor Company and six 1936 Ford Model 68 Tudor Deluxe sedans were produced. The idea was repeated at the end of the run of 1958 to 1960 Thunderbirds, since those cars in stock form used a great deal of stainless steel for their trim. Two 1960 Thunderbirds were built in stainless steel. It was necessary to wait until the end of the production run, because the harder stainless steel would wipe out the stamping dies. In 1966, three 1966 Lincoln convertibles were made in stainless steel. An example of each of these cars can be seen at the Crawford Auto-Aviation museum in Cleveland, Ohio. Speaking of wiping out the stamping dies, did the long production run of any older HP calculator series wear out the plastic molds used to make them? Nowadays, alas, the end product tends to wear out first. === === Subject: Re: HP35 >My company purchased an HP 35 for use in validity testing only I am >having trouble programing it. ?I have the formulas and two of them are >programmed into the calculator correctly however one of them is not >working. ?My question is....Is this calculator compatible with any >formula??? Yes, this calculator is compatible with any formula. ?Sometimes > formulas need to be rewritten in order to work with solvers like HP's > Solver. > I need the following programmed: >Percentile of Strength >Coefficient of Variation >Functional Strength Deficit >Percent Max Heart Rate >Percent Difference Can you type in the formula that's working, the one that isn't > working, and a couple of examples for us to try? -- > Ray Hey are some examples of the formulas I need programmed...... P=((T-B)/(H-L))(R-L) +B xon-1/x(with a line above it) x 100 D=(F-S)/F)x 100 > I do not own a hp35 I have a HP33s similar but different keystrokes These types of programs are most easily handled with the solver. Read the manual section pertaining to writing solver program. Also I found the following tutorials on the HP site http://h20331.www2.hp.com/hpsub/cache/532209-0-0-225-121.html http://h20331.www2.hp.com/Hpsub/downloads/35 24 Formula Solver 1.pdf http://h20331.www2.hp.com/Hpsub/downloads/35 25 Formula Solver 2.pdf these should get you started === Subject: Think Lithium! Are you doing heavy math every day and worry about empty battery? I changed my good old 4Mhz HP48SX with 1.1MB Ram to Lithium-battery. They are chinese second source from old Nokia 9300. http://www.criseis.ruhr.de/batt1.jpg http://www.criseis.ruhr.de/batt2.jpg Fit very well and in 1-2 years I can say how long I can use between charging. Olaf p.s: Of course you need a selfmade lithium battery charger, but that is to complicate for this newsgroup. .-) === Subject: Re: Think Lithium! posting-account=zwF5mgoAAABtN7MLMYmZfSdAoZ2In_RC rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) > p.s: Of course you need a selfmade lithium battery charger, but that > is to complicate for this newsgroup. .-) If you use the MAX 1555, like I did in my lithium powered 49g+ simple. I used the usb input, but it can also take any DC source between 3.7 and 7 volts. I like that you fit the whole thing in the battery compartment. Good job. -Jonathan === Subject: Re: Think Lithium! >If you use the MAX 1555, like I did in my lithium powered 49g+ >simple. I used the usb input, but it can also take any DC source >between 3.7 and 7 volts. I charge my battery with a selfmade charger I build with a microcontroller that can charge/discharge, measure Ri, Capacity and so on. If I like to build something inside of calculator I can recomend BQ24108 from Texas. It did not waste so much space and you can use 6-16V. That is good for charging in cars. I used it for my PDA powersupply: http://www.criseis.ruhr.de/powerbox/powerbox.html Perhaps you can steal the idea or a part of the layout, because it is complicate. Olaf === Subject: Re: HP48S Schematic <47d495fe$0$47168$892e0abb@auth.newsreader.octanews.com> posting-account=wcRVPwkAAACV9qEmJuiPuuML0GXuIOZ6 4.90),gzip(gfe),gzip(gfe) >> Has anyone developed a schematic for the HP48S/SX? >> I've relied on the fine HP48G schematic that Mr. Flipse has done, but >> have found that a HP48SX (sn3229S...) has significantly different pc >> layout and components that the HP48G. >> This HP48SX has a Saturn IC that is not in a conventional plastic Quad >> Flat Package - it is some type of non-square chip carrier type >> package. ÊI would like to relate these pins to the pins of the QFP >> used in the HP48G (in particular, the 'ON'' key input.). Êi would >> rather avoid >> Any other details on the HP48SX Schematic/PC layout would be >> appreciated. >> TomCee > As nobody has responded, pehaps I should ask a related question: > ÊIs anyone interested in a schematic/component layout for the HP48S. > I realize the schematic is somewhat similar to the HP48G series, > although the pinouts on the processor are very different as the IC is > a different package. ÊAlso, finding the appropriate signals on the > bottom side of the board is very different from the HP48G, so this > information could also be helpful. > TomCee > It's been a long time, but i think the schematic for the sx is >> available, it was in a text file by a french autor. >> Steve Sousa- Hide quoted text - > - Show quoted text - The schematic by Marcel Flipse was the on I had referred to is of the > HP48G series. I understood that. The files i was refering to werehttp://www.hpcalc.org/hp48/docs/misc/hphard.zip > andhttp://www.hpcalc.org/hp48/docs/programming/saturnd.zip > but they only have the info on the led for the sx (i knew it had someting!) > So, if you have any extra info please post it, i'll apreciate it. Steve Sousa- Hide quoted text - - Show quoted text - Some small steps, but I've posted scans of the HP48SX pcb here: and I've scanned the conductive keyboard 'underlay' from a HP48G (I presume the HP48S is similar) here: I've also labelled the address lines at the keyboard connector on the main pcb (HP48G) bottom: TomCee === Subject: input command posting-account=mOg34goAAACq8ZMWmEbOnQEkdDVXuNOx CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) I have problem, pleas help me How storing data (string) from HP50 into directory on an SD card with progran, not hand make === Subject: Re: input command posting-account=zYTuBQoAAAC_bXzGjGVT5rxv8bOnpefP Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) > I have problem, pleas help me > How storing data (string) from HP50 into directory on an SD card with > progran, not hand make how to use it: http://sense.net/~egan/hpgcc/#String%20to%20File If you just want the binaries, then: http://sense.net/~egan/hpgcc/#Sidebar:%20%20Play%20First! === Subject: Re: input command posting-account=Q2CEjQoAAACue5ZDDhUeRzv1w0u8hxZE Gecko/2008030714 Firefox/3.0b4,gzip(gfe),gzip(gfe) > How storing data (string) from HP50 into directory on an SD card with > progran, not hand make When you store a text string into the SD card, it will put a little bit of text at the beginning indicating a file type to the calculator. When you open the file on the computer, there are a few characters at the beginning that need to be erased. If you don't mind that, then do this: String to store on SD card. :3:FOLDER1/FOLDER2/MY STRING.TXT STO That will do what you'd like. TW === Subject: Re: input command posting-account=mOg34goAAACq8ZMWmEbOnQEkdDVXuNOx CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) > How storing data (string) from HP50 into directory on an SD card with > progran, not hand make When you store a text string into the SD card, it will put a little > bit of text at the beginning indicating a file type to the > calculator. ÊWhen you open the file on the computer, there are a few > characters at the beginning that need to be erased. ÊIf you don't mind > that, then do this: String to store on SD card. > :3:FOLDER1/FOLDER2/MY STRING.TXT > STO That will do what you'd like. TW This example is almoust OK my program make this ROW wrong is and empty space how can I solve this problem whit user rpl program === Subject: Re: input command posting-account=Q2CEjQoAAACue5ZDDhUeRzv1w0u8hxZE Gecko/2008030714 Firefox/3.0b4,gzip(gfe),gzip(gfe) > This example is almoust OK The example is perfect. You are either typing it in wrong, or trying to put the TAG into a string. Make the string first, then tag it for port 3. 3 ->TAG STO The -> is the little right arrow character. TW === Subject: Re: input command posting-account=mOg34goAAACq8ZMWmEbOnQEkdDVXuNOx CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) > This example is almoust OK The example is perfect. ÊYou are either typing it in wrong, or trying > to put the TAG into a string. ÊMake the string first, then tag it for > port 3. 3 > ->TAG > STO The -> is the little right arrow character. TW thenk you wizard word is TAG command super!!!!! I'm surveyor and using Leica instruments and solve problems on work with user rpl programs Are you using Builder program? I need inform mask with six rows for input points (Number, y,x,z, stac., radij) nice day === Subject: Re: input command > I have problem, pleas help me > How storing data (string) from HP50 into directory on an SD card with > progran, not hand make i would use the sdfiler 1.xx and a little user rpl if necessary. jm === Subject: Re: input command I have problem, pleas help me > How storing data (string) from HP50 into directory on an SD card with > progran, not hand make i would use the sdfiler 1.xx and a little user rpl if necessary. > jm btw === Subject: In 50g, how to change laplace vx to s or t HP50g compute LAP(X) =1/X^2 but I want to compute LAP(t) = 1/s^2 Help me¤Ì¤[CapitalEth] === Subject: Re: HPGCC related ... I want to close this thread by clarifying this situation: <... The entire file is: > ----------------------------------- > #include int main() > { > Ê Ê Ê Ê float f; > Ê Ê Ê Ê double d; Ê Ê Ê Ê clear screen(); //clear the screen Ê Ê Ê Ê scanf(%f,&f); Ê// should work but doesn't > Ê Ê Ê Ê scanf(%lf,&d); // works as expected > Ê Ê Ê Ê scanf(%f,&d); Ê// should fail but doesn't Since HPGCC does not support floats, %f is mapped to doubles. This explains why the 1st scanf fails (you need to provide a pointer to a double, not a float), and why the 3rd option works. Ê Ê Ê Ê printf(%f, %f, %fn,f,d,d); If you want to write correct ANSI-C, this should be: printf(%f %lf %lfn,f,d,d); It only worked because %f is also mapped to doubles in HPGCC, being equivalent to %lf. On HPGCC, you should have written: printf(%lf %lf %lfn,(double)f,d,d); Claudio === Subject: Re: HPGCC related ... posting-account=y6ooGwkAAACoZd171Nq6oGIjQC5mB4Q9 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) If you want to write correct ANSI-C, this should be: printf(%f %lf %lfn,f,d,d); It only worked because %f is also mapped to doubles in HPGCC, being > equivalent to %lf. On HPGCC, you should have written: printf(%lf %lf %lfn,(double)f,d,d); Disregard this part. It doesn't clarify anything... %f = double. %lf = long double in ANSI-C, as well as in HPGCC. Claudio === Subject: Re: HPGCC related ... posting-account=gdzz3QoAAACN-CJ2JCs1erj4jytS1FOX InfoPath.1),gzip(gfe),gzip(gfe) I am getting more curious!? I really would like to know which version of the HPGCC compiler you > are using and the header file. HPGCC VERSION: 2.0 > HPGCC REVISION: 563 The entire file is: > ----------------------------------- > #include int main() > { > Ê Ê Ê Ê float f; > Ê Ê Ê Ê double d; Ê Ê Ê Ê clear screen(); //clear the screen Ê Ê Ê Ê scanf(%f,&f); Ê// should work but doesn't > Ê Ê Ê Ê scanf(%lf,&d); // works as expected > Ê Ê Ê Ê scanf(%f,&d); Ê// should fail but doesn't Ê Ê Ê Ê printf(%f, %f, %fn,f,d,d); Ê Ê Ê Ê WAIT CANCEL; Ê Ê Ê Ê return 0;} ----------------------------------- In any case, I would highly recommend using sat pop real(), > sat push real(). > The HPStack library has: hps pop real(), hps push real(), > hps pick real(). I really wonder if there is a more > simple command to implement on HPGCC than scanf or printf? Hmmm. ÊI would have thought that these functions would be two of the > largest functions to implement. -wes I have tried your code and none of my enteries could be printed on the screen. I really want to know what is different with your way of doing it and mine. Besides, your suggestion about using the stack library. It is working, but you can realize that it is working when you QUIT the program. That is, you see all your displayed data in stack. As you can surely understand without my saying that, after calling CLEAR SCREEN() you lost all your visual contact with the STACK? Am I wrong? There is no use to print values to stack after calling the CLEAR SCREEN() function. I am currently entering my variables as strings. Then I use the atof() function. This is working as far as input is concerned. I am still having problems to display floats or doubles on screen. I have used sprintf() fuction and it is not working properly. It behaves just like printf() function. All I can have is some numbers which I couldn't be able to give any meaning to them. My plan was to convert the float or double into string and print the converted string on screen. In worst case I will code a small function to convert floats or doubles into strings. If I have the enough amount of memory, though. /Onur === Subject: Re: HPGCC related ... posting-account=y6ooGwkAAACoZd171Nq6oGIjQC5mB4Q9 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) >I am getting more curious!? > I really would like to know which version of the HPGCC compiler you >are using and the header file. HPGCC VERSION: 2.0 > HPGCC REVISION: 563 The entire file is: > ----------------------------------- > #include int main() > { > Ê Ê Ê Ê float f; > Ê Ê Ê Ê double d; Ê Ê Ê Ê clear screen(); //clear the screen Ê Ê Ê Ê scanf(%f,&f); Ê// should work but doesn't > Ê Ê Ê Ê scanf(%lf,&d); // works as expected > Ê Ê Ê Ê scanf(%f,&d); Ê// should fail but doesn't Ê Ê Ê Ê printf(%f, %f, %fn,f,d,d); Ê Ê Ê Ê WAIT CANCEL; Ê Ê Ê Ê return 0;} ----------------------------------- In any case, I would highly recommend using sat pop real(), > sat push real(). > The HPStack library has: hps pop real(), hps push real(), > hps pick real(). > I really wonder if there is a more >simple command to implement on HPGCC than scanf or printf? Hmmm. ÊI would have thought that these functions would be two of the > largest functions to implement. -wes I have tried your code and none of my enteries could be printed on the > screen. I really want to know what is different with your way of doing > it and mine. Besides, your suggestion about using the stack library. It is working, > but you can realize that it is working when you QUIT the program. That > is, you see all your displayed data in stack. As you can surely > understand without my saying that, after calling CLEAR SCREEN() you > lost all your visual contact with the STACK? Am I wrong? There is no > use to print values to stack after calling the CLEAR SCREEN() > function. I am currently entering my variables as strings. Then I use the atof() > function. This is working as far as input is concerned. I am still > having problems to display floats or doubles on screen. I have used > sprintf() fuction and it is not working properly. It behaves just like > printf() function. All I can have is some numbers which I couldn't be > able to give any meaning to them. My plan was to convert the float or > double into string and print the converted string on screen. In worst > case I will code a small function to convert floats or doubles into > strings. If I have the enough amount of memory, though. /Onur- Hide quoted text - - Show quoted text - First of all, there are no known problems displaying floating point numbers on the screen, so the problem is in your code. Second, you probably don't deserve my help due to your arrogance in posts above, but here it is anyway... To print a double: double mydouble; printf(%lf,mydouble); to print a float: float myfloat; printf(%lf,(double)myfloat); to read a number from the console: double mydouble; scanf(%lf,&mydouble); and if you want to read it as float: double temp; float myfloat; scanf(%lf,&temp); myfloat=temp; The forced conversion to double is required because we dropped support for low-precision floats in HPGCC, in favor of higher-precision doubles and even higher decNumbers. When you use variable-argument functions, it is your responsibility to provide proper argument type conversion. All math functions use doubles internally, so using float will only add unnecessary overhead to your calculations, though saving storage space. Claudio === Subject: When compute laplace In 50g, how to change vx(X) to s or t posting-account=mG1K0ggAAADsAVIjUVaMD3NGjKePUWPx .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2),gzip(gfe),gzip(gfe) For example, HP50g compute LAP(X) =1/X^2 but I want to compute LAP(t) = 1/s^2 Help me¤Ì¤[CapitalEth] === Subject: Re: When compute laplace In 50g, how to change vx(X) to s or t > For example, > HP50g compute LAP(X) =1/X^2 > but I want to compute LAP(t) = 1/s^2 > Help me???? One way is to build a program to include appropriate changes of variables. For example, put a function in terms of variable 't' on the stack then execute the program << 't' RCLVX = SUBST LAP RCLVX 's' = SUBST >> to get the transform as function of variable 's'. You can then use the program << 's' RCLVX = SUBST LAPI RCLVX 't' = SUBST >> to reverse the process on a function whose variable is 's', getting the inverse transform as a function of 't'. Save both programs with appropriate names if you will be needing them repeatedly. === Subject: In 50g, how to change laplace vx to s or t posting-account=mG1K0ggAAADsAVIjUVaMD3NGjKePUWPx .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2),gzip(gfe),gzip(gfe) For example, HP50g compute LAP(X) =1/X^2 but I want to compute LAP(t) = 1/s^2 and how compute derivative, dy(t)/dt as LAP(d1y(X)) = s*Y(s) - y(0) Help me¤Ì¤[CapitalEth] === Subject: Re: HPGCC related ... > Disregard this part. It doesn't clarify anything... %f = double. %lf = > long double in ANSI-C, as well as in HPGCC. Claudio For what it's worth, ANSI C99 specifies for printf() %f = double %Lf = long double Technically, there is no %lf, but C99 states that the l(ell) has no effect on a following f conversion specifier, making %lf synonymous with %f. %lf = %f = double Some non-compliant compilers, such as Microsoft, do use %lf for long double. -wes === Subject: Re: HPGCC related ... posting-account=y6ooGwkAAACoZd171Nq6oGIjQC5mB4Q9 .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe) Disregard this part. It doesn't clarify anything... %f = double. %lf = > long double in ANSI-C, as well as in HPGCC. Claudio For what it's worth, ANSI C99 specifies for printf() %f Ê= double > %Lf = long double Technically, there is no %lf, but C99 states that the l(ell) has no > effect on a following f conversion specifier, making %lf synonymous > with %f. %lf = %f Ê= double Some non-compliant compilers, such as Microsoft, do use %lf for long > double. -wes Even MS abandoned the long double years ago (at least on the x86 platform, don't know on others), and now long double is mapped to double, to add more confusion. So %f, %lf, %Lf, the type (long double) and the type (double) are all the same thing in the x86 platform and also in gcc for ARM, therefore HPGCC mapped all types to double, even for scanf() where %f should technically be a float. In my code, I like to use %lf for doubles, to make scanf anf printf identical in syntax, but that's just my personal preference (but I've been doing it for so many years that I convinced myself that was ANSI- C, :-). Claudio === Subject: Re: BatStatus 2.0 puzzle - can anyone help? posting-account=82unwgoAAABKn0foN-teZr4DLYjqF_TL Gecko/2008030714 Firefox/3.0b4,gzip(gfe),gzip(gfe) > I have a 50g. Could anyone explain the following: BatStatus 2.0 gives > # 34Ah and 4.93 V Battery Monitor 1.0 gives > # 34Ah and 5.17 V Calculator (ON+F6, 8) gives > # 329h (BatStatus 2.0 and Battery Monitor 1.0 were installed from > hpcalc.org.) Both programs give the same hexadecimal value, but different > voltages. ÊHowever, the hexadecimal value does not agree with the > calculator's (ON+F6, 8) value. BatStatus does not come with a 'readme.txt'. Ê Battery Monitor's > 'readme.txt' states the following: Bat Volt' message > Ê Ê Display the Battery voltage of HP-50g and original AD value. > Ê Ê You can see the AD value by pressing ON+F6 and select '8.POWER'. It seems that the 2 programs use a different 'AD value' - voltage > correlation. Why does the 'AD value' reported not agree with the calculator's (ON > +F6, 8)? Much appreciated, > Doug A bit of a late reply, but this deserves some form of answer. I agree that 2 programs must be using different voltage correlation. I have no idea which is more accurate. As for the differences in the values displayed by the ARM-level selftest and those programs, I can only speculate that the load is different. A batteries voltage does not remain constant for different loads, so it may be that while in the selftest menu the calculator is drawing more power. (Why it would I have no idea, but it seems possible). I wold test this theory with a multimeter, except that I don't have either program on my HP-50g at the moment, and I'm having transient problems connecting to hpcalc.org. === Subject: Re: BatStatus 2.0 puzzle - can anyone help? posting-account=JjaUGwoAAAAFjFDcZJXzGyMhQZJOwvrw CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1),gzip(gfe),gzip(gfe) On Mar 20, 6:13Êam, username localhost I have a 50g. Could anyone explain the following: BatStatus 2.0 gives > # 34Ah and 4.93 V Battery Monitor 1.0 gives > # 34Ah and 5.17 V Calculator (ON+F6, 8) gives > # 329h (BatStatus 2.0 and Battery Monitor 1.0 were installed from > hpcalc.org.) Both programs give the same hexadecimal value, but different > voltages. ÊHowever, the hexadecimal value does not agree with the > calculator's (ON+F6, 8) value. BatStatus does not come with a 'readme.txt'. Ê Battery Monitor's > 'readme.txt' states the following: Bat Volt' message > Ê Ê Display the Battery voltage of HP-50g and original AD value. > Ê Ê You can see the AD value by pressing ON+F6 and select '8.POWER'. It seems that the 2 programs use a different 'AD value' - voltage > correlation. Why does the 'AD value' reported not agree with the calculator's (ON > +F6, 8)? Much appreciated, > Doug A bit of a late reply, but this deserves some form of answer. I agree that 2 programs must be using different voltage correlation. > I have no idea which is more accurate. As for the differences in the values displayed by the ARM-level > selftest and those programs, I can only speculate that the load is > different. A batteries voltage does not remain constant for different > loads, so it may be that while in the selftest menu the calculator is > drawing more power. (Why it would I have no idea, but it seems > possible). I wold test this theory with a multimeter, except that I > don't have either program on my HP-50g at the moment, and I'm having > transient problems connecting to hpcalc.org.- Hide quoted text - - Show quoted text - Your theory does make sense. I like the BatStatus 2.0 program. I guess the thing to do is to get to know the program you want to use. I will publish the correlation for BatStatus 2.0 when I have finished the current battery cycle on my 50g. Doug === Subject: Re: When compute laplace In 50g, how to change vx(X) to s or t [...] You can either change the expression to use the default variable, or set the default variable to match the expression (e.g. 's' STOVX) [I]LAP output is produced in terms of the same variable name, even though one thinks of it as a different variable, because the calculator can't think for itself :) [r->] [OFF] === Subject: In 50g, how to compute Fourier transform?? Not DFT or FFT, just fourier transform exmaple FT(exp(i*wo*t)) = 2*¥[Eth]*Delta(w-wo) & In laplace, How to compute differential funtion example LAP(d1f(X)) = X*F(X) - f(0) My English skill is very poor.. I wonder my grammers are right^^;; Anyway.. help me..¤[CapitalEth]¤Ì === Subject: Re: In 50g, how to compute Fourier transform?? One way is to use MATH-PACK or SCIENCE-PACK made by HEUSON-SOFTWARE. You can see screenshots and software details in : http://www.heuson-software.de/ Not DFT or FFT, just fourier transform exmaple FT(exp(i*wo*t)) = 2*¥[Eth]*Delta(w-wo) & In laplace, How to compute differential funtion example LAP(d1f(X)) = X*F(X) - f(0) My English skill is very poor.. I wonder my grammers are right^^;; Anyway.. help me..¤[CapitalEth]¤Ì === Subject: Re: In 50g, how to compute Fourier transform?? 1.1.4322; .NET CLR 2.0.50727; WinuE v6; WinuE v6),gzip(gfe),gzip(gfe) > One way is to use MATH-PACK or SCIENCE-PACK made by HEUSON-SOFTWARE. > You can see screenshots and software details in :http://www.heuson-software.de/ Quite expensive, but very nice packs. Couldn«t be bad coming from Germany. HP should provide some of those features built-in or at least make it downloadable. Loved Fourier series for piece wise functions. Used to do that with Mathematica in the old days. === Subject: Re: In 50g, how to compute Fourier transform?? One way is to use MATH-PACK or SCIENCE-PACK made by HEUSON-SOFTWARE. > You can see screenshots and software details in :http://www.heuson-software.de/ Quite expensive, but very nice packs. Couldn«t be bad coming from > Germany. HP should provide some of those features built-in or at least make it > downloadable. > I honestly fear that HP is really no longer in much of a position to make any more ROM releases. My understanding is that many of the designers of the software used have left since HP, leaving HP with few people who could work on the software side of the calculator. But JYA would probably know better, having been a former HP employee and Metakernel developer. I do hope I am mistaken. For what it is worth though, the source code for the CAS (which IIRC still cause itself Erable in a few places) is available. So improvements there can still be made. Further, Bernard Parisse has worked on the CAS since the last official ROM Release (resulting in the unofficial 2.10 rom series), and may continue to do so in the future. In the mean time perhaps somebody can look at laplace.s and create roughly equivalent Fourier and inverse Fourier commands from it. The way the transforms work is similar enough that it may be possible. If somebody does create those commands it might even be possible to get them integrated into the CAS for the next release, assuming of course that Bernard Parisse is still working on the CAS. === Subject: Re: In 50g, how to compute Fourier transform?? [new ROM?] > I fear that HP is really no longer in much of a position to > make any more ROM releases. My understanding is that many of the > designers of the software used have left since HP, leaving HP with > few people who could work on the software side of the calculator. A completely ready 2.10 ROM (fixing some outstanding bugs, plus some previously missed overlay locations for emulator-accelerated Saturn code, and containing updated CAS version 4.20060919) was in HP's hands, but has never been offered by HP. Fixes and updates were actually volunteered by the original authors, even though HP no longer paid them, through their former associate who remained within HP, but it appears to have been a management decision not to release anything further. === Subject: Re: new ROM? (was: In 50g, how to compute Fourier transform??) posting-account=82unwgoAAABKn0foN-teZr4DLYjqF_TL Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) I fear that HP is really no longer in much of a position to > make any more ROM releases. My understanding is that many of the > designers of the software used have left since HP, leaving HP with > few people who could work on the software side of the calculator. A completely ready 2.10 ROM (fixing some outstanding bugs, > plus some previously missed overlay locations > for emulator-accelerated Saturn code, > and containing updated CAS version 4.20060919) > was in HP's hands, but has never been offered by HP. Fixes and updates were actually volunteered by the original authors, > even though HP no longer paid them, > through their former associate who remained within HP, > but it appears to have been a management decision > not to release anything further. That is worst than I feared. This nearly official rom, how did it differ from BP's 2.10-7? I would assume there must be some differences, as a few of the new features in that rom have some semi- nasty bugs. (IIRC, the spreadsheet had some such bugs, and there was at least one part of the geometry app with such problems.) I'm actually still using 2.09. Do you recommend updating to BP's rom? Also, happen to have any educated guesses why such a Management decision would have been made? Is HP trying to leave the calculator business or something? username@localhost === Subject: Re: new ROM? (was: In 50g, how to compute Fourier transform??) > This nearly official [2.10] rom, how did it differ from BP's 2.10-7? I would guess that BP may have just updated the CAS part of it (comparing parts bytewise might test this assumption). > I would assume there must be some differences, > as a few of the new features in that rom have some semi-nasty bugs. > (IIRC, the spreadsheet had some such bugs, and there was > at least one part of the geometry app with such problems.) Both the spreadsheet and geometry app reside within the CAS section, and would of course have been omitted in the non-released HP version. BP stated that those apps were entirely experimental; their presence would not affect any programs or operations not specifically calling upon those apps, so it would appear that one can get all the benefit by using BP's version, without otherwise being affected. > I'm actually still using 2.09. Do you recommend updating to BP's rom? You can easily re-flash ROM (especially with an SD card), until one day the flash gives out (which IIRC no one has ever yet reported), so it would appear to be risk-free. > Also, happen to have any educated guesses why > such a Management decision would have been made? I am, alas, uneducated -- at least as to what transpires within HP. > Is HP trying to leave the calculator business or something? It looks to me as if they are trying to leave the HP50G alone, and put attention on other product introductions and re-issues (which may be only look-alikes, rather than clones of the originals, given the different results and new bugs which turn up) [r->] [OFF] === Subject: Re: new ROM? (was: In 50g, how to compute Fourier transform??) This nearly official [2.10] rom, how did it differ from BP's 2.10-7? I would guess that BP may have just updated the CAS part of it > (comparing parts bytewise might test this assumption). The 'it' there is confusing. Basically, I'm wondering if BP's rom includes (at a minimum) all the fixes that would have made it into the official release. If so, that is excellent. > I would assume there must be some differences, > as a few of the new features in that rom have some semi-nasty bugs. > (IIRC, the spreadsheet had some such bugs, and there was > at least one part of the geometry app with such problems.) Both the spreadsheet and geometry app reside within the CAS section, > and would of course have been omitted in the non-released HP version. BP stated that those apps were entirely experimental; > their presence would not affect any programs or operations > not specifically calling upon those apps, > so it would appear that one can get all the benefit > by using BP's version, without otherwise being affected. > It seems quite obvious to me that that the Geometry app would have no impact unless used, except in the case that including it moved some unsupported rom pointers that are in use by some 3rd party programs. (I know there are no 2nd party apps that would break, seeing as I have not written anything significant in SYSRPL.) The spreadsheet is not quite as obvious, seeing as it is fairly closely tied to the matrix editor, although assuming he took some reasonable precautions (as I expect he did) it should not be a problem either. Speaking of installing that rom, I'm having real trouble with BP's ftp site. Often I cannot connect to the ftp server, but even when i can, It gives me an error if I try to enter the xcas directory, which is where the CAS and rom stuff lives. Is this a general problem? Whats the best alternative source for the rom? username@localhost === Subject: Re: new ROM? (was: In 50g, how to compute Fourier transform??) > Also, happen to have any educated guesses why such a Management > decision would have been made? I suspect that given how calculators are marketed these days (mostly to people in school), HP figures that an updated ROM is going to have just about zero impact on their sales so... using modern marketing guy think, why incur in the expense of even just sticking it up on a web site? This behavior seems not dissimilar to what's happening with the HP-35s... In 1972, when HP discovered bugs in the original HP-35, they sent out notices to all customers offering to replace them. In 2007, when HP (and end users) discovered bugs in the HP-35s, HP didn't even bother to stick up a web page documenting those bugs, much less commit to working on bug fixes or offering replacement machines. === Subject: Re: In 50g, how to compute Fourier transform?? > Not DFT or FFT, just fourier transform > exmaple > FT(exp(i*wo*t)) = 2*¥[Eth]*Delta(w-wo) > This is really odd. Today was the first day I even thought about the Laplace and Fourier Transforms on my Hp50g, yet many of the recent messages have been about exactly this topic. Does this have something to do with a bunch of people reaching the correct point in the curriculum at the same time? I have not been able to find any built-in or custom apps to calculate the Fourier transform as defined by [LaTeX] X(omega) = int {-infty}^infty x(t) e^{- iomega t},dt [/ LaTeX] (or even the unitary or ordinary frequency forms, which could be corrected with a simple wrapper.) It also seems like it cannot be efficently emulated using the LAP function, as that is not a bilateral laplace transform, which would be needed. === Subject: Re: Think Lithium! > Fit very well and in 1-2 years I can say how long I can use between > charging. Why use rechargeable lithium-batteries? When the alkalines, i have actually in my 49g+ are empty, i will replace them by non-rechargeable lithium batteries. I think that should be enough energy for the next 3 - 4 years ;) The problem of lithium-accumulators is, that they have a very short lifetime. Only 3 years, sometimes a bit longer but with a significant loss of capacity. Volker -- Im .9fbrigen bin ich der meinung, dass TCPA/TCG verhindert werden muss === Subject: Re: Think Lithium! > Why use rechargeable lithium-batteries? When the alkalines, i have actually in my 49g+ are empty, i will replace > them by non-rechargeable lithium batteries. I think that should be enough energy for the next 3 - 4 years ;) You mean like Energizer 1.5V lithium AAAs? Like these: http://data.energizer.com/PDFs/l92.pdf As you can see, the capacity of lithium batteries at low power draw is the same as alkaline. Only at high discharge rates (>200mA) does the internal resistance matter enough to reduce the effective capacity. If you go back to Eric's thread on current draw for the hp 50g: you'll see that the maximum draw in a 50g is 92.0mA. So, if you look at the capacity at 100mA on the energizer spec sheet, you'll see that your lithium would have an effective capacity of 1200mAh, where an alkaline has a little over 900mAh. So, you might be getting something better than the energizers, but since lithium and alkalines are basically identical at low current, I don't see where your excitement comes from. You'll spend about the same amount on your non-rechargeable as I paid for mine, but mine is... you know, rechargeable. -Jonathan > The problem of lithium-accumulators is, that they have a very short > lifetime. Only 3 years, sometimes a bit longer but with a significant loss > of capacity. It's not a time issue, is a charge, recharge issue. Probably figure at least 100 recharge cycles before the capacity drops noticably. I dare say, in a calculator, that will be a bit more than 3 years. Please feel free to inform me of facts that I'm not aware of. -Jonathan === Subject: Re: Think Lithium! >> I think that should be enough energy for the next 3 - 4 years ;) You mean like Energizer 1.5V lithium AAAs? Like these: > http://data.energizer.com/PDFs/l92.pdf Indeed. > As you can see, the capacity of lithium batteries at low power draw is > the same as alkaline. Only at high discharge rates (>200mA) does the > internal resistance matter enough to reduce the effective capacity. If you go back to Eric's thread on current draw for the hp 50g: you'll see that the maximum draw in a 50g is 92.0mA. So, if you look at the capacity at 100mA on the energizer spec sheet, > you'll see that your lithium would have an effective capacity of > 1200mAh, where an alkaline has a little over 900mAh. So, you might be getting something better than the energizers, but > since lithium and alkalines are basically identical at low current, Ok, that ist the reason why i felt that in the lithiums in my tv's remote control didn't do much longer than the alkalines. > I don't see where your excitement comes from. Besides the 49g+ i call an HP IR printer my own. And in the printer, the lithiums outclass the alkalines - i testet that several times. >> The problem of lithium-accumulators is, that they have a very short >> lifetime. Only 3 years, sometimes a bit longer but with a significant >> loss of capacity. It's not a time issue, is a charge, recharge issue. This is true for non-lithium accumulators but not for lithiums. Lithium accumulators suffer from a significiant loss of capacity after about three to five years, regardles wether used or not and regardles if stored fully recharged, partly recharged or empty. -- Im .9fbrigen bin ich der meinung, dass TCPA/TCG verhindert werden muss === Subject: Re: Think Lithium! >Please feel free to inform me of facts that I'm not aware of. When a lithium-battery becomes old you will find at first that the inner resistance goes up. This is a big problem for high power devices like a laptop. But if your device needs very low power than you can use the battery very long. 7-8 years ago. I used two 18650cells from a _bad_ old laptop battery at this time. Four years ago I used this torch in my garage for repairing my car. After that I forgot the torch there and found it one year ago. So it stays there three hot summer and three cold winter. I switched it on and it worked without a problem, it was even well charged. I tested it because I was interested about it. For this reason I expect a very long live of lithium battery inside my HP48SX. Olaf === Subject: Re: Think Lithium! >Why use rechargeable lithium-batteries? Because battery become empty only at weekend! >The problem of lithium-accumulators is, that they have a very short >lifetime. Only 3 years, sometimes a bit longer but with a significant loss >of capacity. No, thats wrong. For example the battery of my Zaurus SL-C750 is now 5-6years old and I can use it for 5-6h without any problem. (2h with WLAN on) And I have many (5-6) torches with lithium battery. I made them myself with old battery from laptop and they are working very well. Oh..and I bought 20 of lithiumbattery that I used for my 48SX at ebay for only 11.50Euro... Olaf === Subject: Dynamic Memory Allocation I would like to create a two-dimensional array to store (x,y) coordinates. If my array size is 1000 but only contains elements one and 999, I don't want to allocate memory for 1000 elements. How would I create functions similar to the malloc(), calloc(), and realloc() functions used in C programming? === Subject: Re: Dynamic Memory Allocation > I would like to create a two-dimensional array to store (x,y) > coordinates. If my array size is 1000 but only contains elements one > and 999, I don't want to allocate memory for 1000 elements. How would > I create functions similar to the malloc(), calloc(), and realloc() > functions used in C programming? RPL dynamically allocates memory. You can just create a Nx2 matrix. N increases as you add points. If the points must be indexed, then use a Nx3 matrix. E.g.: 1 10 20 3 ->ARRY @ first point 10,20, index 1 999 30 40 3 ->ARRY @ 2nd point 30,40, index 999 2 ROW-> @ create 2x3 matrix | 1 10 20 | | 999 30 40 | To append: ROW-> @ break out into arrays and number of arrays 'n' STO @ store number of arrays 500 50 60 3 ->ARRY @ 3rd point 50,60, index 500 'n' RCL @ recall n (2) 1 + @ 2 + 1 = 3 ROW -> @ create 3x3 matrix | 1 10 20 | | 999 30 40 | | 500 50 60 | Deleting: 2 ROW- DROP @ dump row 2, index 999 | 1 10 20 | | 500 50 60 | Editing, read up on GET/PUT. Sorting, searching? You're on your own. :-) BTW, you can also do this with lists of lists or lists of arrays and probably a number of other ways. === Subject: Re: Dynamic Memory Allocation posting-account=5jQj0AoAAAAGAGJcqkkpunLMBpVi1N5o 2.0.50727),gzip(gfe),gzip(gfe) I would like to create a two-dimensional array to store (x,y) > coordinates. If my array size is 1000 but only contains elements one > and 999, I don't want to allocate memory for 1000 elements. How would > I create functions similar to the malloc(), calloc(), and realloc() > functions used in C programming? RPL dynamically allocates memory. You can just create a Nx2 matrix. > N increases as you add points. If the points must be indexed, then > use a Nx3 matrix. E.g.: 1 10 20 3 ->ARRY @ first point 10,20, index 1 > 999 30 40 3 ->ARRY @ 2nd point 30,40, index 999 > 2 ROW-> @ create 2x3 matrix | 1 10 20 | > | 999 30 40 | To append: ROW-> @ break out into arrays and number of arrays > 'n' STO @ store number of arrays > 500 50 60 3 ->ARRY @ 3rd point 50,60, index 500 > 'n' RCL @ recall n (2) > 1 + @ 2 + 1 = 3 > ROW -> @ create 3x3 matrix | 1 10 20 | > | 999 30 40 | > | 500 50 60 | Deleting: 2 ROW- DROP @ dump row 2, index 999 | 1 10 20 | > | 500 50 60 | Editing, read up on GET/PUT. Sorting, searching? You're on your own. :-) BTW, you can also do this with lists of lists or lists of arrays and > probably a number of other ways. I need to restate my question concerning dynamic memory allocation. I think my question concerns indexing as well. Suppose I'm given a list of 1000 pairs of (x, y) coordinates. Each pair represents the (x, y) coordinates of an object on a construction site such as a building corner, center of a sewer manhole, etc. I want to store some, but not all of these coordinate pairs in a variable. I don't need all of the coordinate pairs because on a particular day I'm only working with a building. Suppose I need to store 4 coordinate pairs (I'll refer to them as point numbers) as 3-D vectors [index, x, y], so I can use the first element as an index, to begin with. The point numbers are random. In practice, point numbers are usually not renumbered because it is too confusing and time consuming. To begin with I have: { [1, 200, 300] ... [200, 200, 400] ... [500, 350, 400] ... [999, 350, 300] } So now I have only 4 point numbers stored in a list that was allocated for 1000 point numbers. This was the basis of my original question concerning dynamic memory allocation. I guess if I need to recall point number 999, I would have to use a FOR loop and test every point number in the list for the index value. This would be very time consuming. I still don't like the idea having all that empty space between point numbers either. This is what I'm pondering. This is meant to be in reference to the built-in HP 50g functions or to HPGCC (C-language system). === Subject: Re: Dynamic Memory Allocation I would like to create a two-dimensional array to store (x,y) > coordinates. ÊIf my array size is 1000 but only contains elements one > and 999, I don't want to allocate memory for 1000 elements. ÊHow would > I create functions similar to the malloc(), calloc(), and realloc() > functions used in C programming? RPL dynamically allocates memory. ÊYou can just create a Nx2 matrix. > N increases as you add points. ÊIf the points must be indexed, then > use a Nx3 matrix. ÊE.g.: Ê 1 10 20 3 ->ARRY Ê@ first point 10,20, index 1 > 999 30 40 3 ->ARRY Ê@ Ê 2nd point 30,40, index 999 > Ê Ê Ê Ê Ê 2 ROW-> Ê @ create 2x3 matrix | Ê1 Ê10 20 | > | 999 30 40 | To append: ROW-> Ê Ê Ê Ê Ê Ê Ê @ break out into arrays and number of arrays > 'n' STO Ê Ê Ê Ê Ê Ê @ store number of arrays > 500 50 60 3 ->ARRY Ê@ Ê 3rd point 50,60, index 500 > 'n' RCL Ê Ê Ê Ê Ê Ê @ recall n (2) > 1 + Ê Ê Ê Ê Ê Ê Ê Ê @ 2 + 1 = 3 > ROW -> Ê Ê Ê Ê Ê Ê Ê@ create 3x3 matrix | Ê1 Ê10 20 | > | 999 30 40 | > | 500 50 60 | Deleting: 2 ROW- DROP Ê Ê Ê Ê @ dump row 2, index 999 | Ê1 Ê10 20 | > | 500 50 60 | Editing, read up on GET/PUT. Sorting, searching? ÊYou're on your own. Ê:-) BTW, you can also do this with lists of lists or lists of arrays and > probably a number of other ways. 50g. === Subject: Re: Dynamic Memory Allocation Also, on 49G/50G series: 100. 100. IDN DUP BYTES NIP @ 80015 bytes 100. 100. IDN AXM DUP BYTES NIP @ 25505 bytes Some calculations with the latter type might be slower, however. Is there a Linked Array object type? What's that, how do you create it, and is it of any use here? [r->] [OFF] === Subject: Re: Dynamic Memory Allocation posting-account=5jQj0AoAAAAGAGJcqkkpunLMBpVi1N5o 2.0.50727),gzip(gfe),gzip(gfe) > Also, on 49G/50G series: 100. 100. IDN DUP BYTES NIP @ 80015 bytes 100. 100. IDN AXM DUP BYTES NIP @ 25505 bytes Some calculations with the latter type might be slower, however. Is there a Linked Array object type? What's that, how do you create it, and is it of any use here? [r->] [OFF] 50g. === Subject: Re: Dynamic Memory Allocation > I forgot to mention that this is for the HP 50g. So were all the previous replies, unless you mean that you only mean with reference to HPGCC (C-language system), rather than to use built-in functions. [r->] [OFF] === Subject: (hp50g) don't access 2d/3d plot function posting-account=9CXj6AoAAAA0Fd8dKzzC-7_cS1W6uPyG InfoPath.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) I have this problem on the real hp50g and also on the emulated hp50g on the PC. Where is the problem? What are the conditions to access this function? the brief documentation don't say nothing. === Subject: Re: input command posting-account=9CXj6AoAAAA0Fd8dKzzC-7_cS1W6uPyG InfoPath.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) > This example is almoust OK The example is perfect. ÊYou are either typing it in wrong, or trying > to put the TAG into a string. ÊMake the string first, then tag it for > port 3. 3 > ->TAG > STO The -> is the little right arrow character. TW thenk you > wizard word is TAG command super!!!!! I'm surveyor and using Leica instruments and solve problems on work > with user rpl programs > Are you using Builder program? > I need inform mask with six rows for input points (Number, y,x,z, > stac., radij) nice day I found this interesting also for me. But I didn't solve the problem: << DIR/FILE.TXT 3 ->TAG STO >> Give me the result: :3.00: DIR/FILE.TXT STO Error bad argument type So i tried this: << DIR/FILE.TXT '3' ->TAG STO >> With the same result! === Subject: Re: input command posting-account=Q2CEjQoAAACue5ZDDhUeRzv1w0u8hxZE Gecko/2008030714 Firefox/3.0b4,gzip(gfe),gzip(gfe) > DIR/FILE.TXT Use either a ZINT or a string for tagging. 3.00 R->Z ->TAG or 3 The extra zeros are what is messing it up. TW === Subject: Re: input command [numeric port tags] > The extra zeros [in :3.00:name] are what is messing it up. Indeed, the HP48 [S/G] series correctly interprets even tags like the above, while the HP49G/50G series elected to understand only single-digit tags, or single digits with a decimal (fraction mark) character appended, so that 'xyz' 3 ->TAG produces a non-usable port tag unless either the number display mode is STD or the tag is an integer object (zint) rather than a real number. The ->TAG command itself could easily fix this, by converting integer-valued real args to zints up front, but further ROM updates are unlikely, as has been discussed. You can also always use 3 ->TAG (tags are actually always strings, with the ->TAG command simply converting other acceptable arguments to strings up front, at which point the above extra attention could occur, were ROM updates still possible). [r->] [OFF] === Subject: Banal output problem (User RPL) posting-account=9CXj6AoAAAA0Fd8dKzzC-7_cS1W6uPyG InfoPath.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Hello to all, It banal but not for a beginner :) I desire output on the stack: level 3 the calculus result level 2 input 2 level 1 input 1 But for level 1 and 2 I obtain only the name of the variable! << CLEAR Enter M n: { :M: :n: { 2. 0. } V } INPUT OBJ-> -> M n 'M*n*2.*pi/60./1000.' ->NUM P[kW] ->TAG M M[Nm] ->TAG n n[rpm] ->TAG >> Someone can give me a hint? === Subject: Re: Banal output problem (User RPL) > Hello to all, > It banal but not for a beginner :) > I desire output on the stack: > level 3 the calculus result > level 2 input 2 > level 1 input 1 But for level 1 and 2 I obtain only the name of the variable! << CLEAR Enter M n: { > :M: > :n: { 2. 0. } V } INPUT OBJ-> -> M n > 'M*n*2.*pi/60./1000.' ->NUM P[kW] ->TAG > M M[Nm] ->TAG > n n[rpm] ->TAG Someone can give me a hint? Your -> M n construct looks wrong. Is it like this in the program or is it just a typo in your posting? Should be something like: << CLEAR Enter M n: { :M: :n: { 2. 0. } V } INPUT OBJ-> -> M n << 'M*n*2.*pi/60./1000.' ->NUM P[kW] ->TAG M M[Nm] ->TAG n n[rpm] ->TAG > -- Bruce Horrocks Surrey England (bruce at scorecrow dot com) === Subject: Re: Banal output problem (User RPL) <63vdchF29ag18U1@mid.individual.net> posting-account=9CXj6AoAAAA0Fd8dKzzC-7_cS1W6uPyG InfoPath.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) > Hello to all, > It banal but not for a beginner :) > I desire output on the stack: > level 3 the calculus result > level 2 input 2 > level 1 input 1 But for level 1 and 2 I obtain only the name of the variable! << CLEAR Enter M n: { > :M: > :n: { 2. 0. } V } INPUT OBJ-> -> M n > 'M*n*2.*pi/60./1000.' ->NUM P[kW] ->TAG > M M[Nm] ->TAG > n n[rpm] ->TAG > Someone can give me a hint? Your -> M n construct looks wrong. Is it like this in the program or is > it just a typo in your posting? Should be something like: << CLEAR Enter M n: { > :M: > :n: { 2. 0. } V } INPUT OBJ-> -> M n << > 'M*n*2.*pi/60./1000.' ->NUM P[kW] ->TAG > M M[Nm] ->TAG > n n[rpm] ->TAG > -- > Bruce Horrocks > Surrey > England > (bruce at scorecrow dot com)- Hide quoted text - - Show quoted text - Yes it is so. === Subject: Re: Banal output problem (User RPL) posting-account=n8tIFwoAAABaaZhoM_35uFkkPHEpXkca Gecko/20080207 Ubuntu/7.10 (gutsy) Firefox/2.0.0.12,gzip(gfe),gzip(gfe) ><< CLEAR Enter M n: { >:M: >:n: { 2. 0. } V } INPUT OBJ-> -> M n >'M*n*2.*pi/60./1000.' ->NUM P[kW] ->TAG >M M[Nm] ->TAG >n n[rpm] ->TAG > Your -> M n construct looks wrong. Is it like this in the program or is > it just a typo in your posting? Should be something like: << CLEAR Enter M n: { > :M: > :n: { 2. 0. } V } INPUT OBJ-> -> M n << > 'M*n*2.*pi/60./1000.' ->NUM P[kW] ->TAG > M M[Nm] ->TAG > n n[rpm] ->TAG >Yes it is so. In your program, M and n are local variables only within the algebraic expression that produces stack level 3. In the rest of the program, they are global variable names. In Bruce's program, the additional << and >> extend the scope of the local variables to the words that produce stack levels 1 and 2. Your program is buggy. Bruce's version is correct. === Subject: Re: Fast resizing of a string in ML Hello Claudio, a faster way I discovered is the following: If the string has been created in TEMPOB with =MAKE$N it resides in its own tempob slot. Now instead of copying it to TEMPTOB and using Shrink$ or Stretch$ to change the string this can be done with =MOVERSU and =MOVERSD. Additionally you have to correct the size field of the string and you have to correct the offset to the tempob slot before the current one. The offset to the previous tempob slot is behind the current one, otherwise GC will fail resulting in a crash. Now, do I miss something or will this method be safe from anywhere (covered memory and other pitfalls) to resize a string in its own tempob slot ? Andreas === Subject: Re: Fast resizing of a string in ML a faster way I discovered is the following: > If the string has been created in TEMPOB with =MAKE$N it resides in > its own tempob slot. > Now instead of copying it to TEMPTOB and using Shrink$ or Stretch$ to > change the string this can be done with =MOVERSU and =MOVERSD. > Additionally you have to correct the size field of the string and you > have to correct the offset to the tempob slot before the current one. > The offset to the previous tempob slot is behind the current one, > otherwise GC will fail resulting in a crash. Now, do I miss something or will this method be safe from anywhere > (covered memory and other pitfalls) to resize a string in its own > tempob slot ? Andreas You can only use it if the string is *already* in TEMPTOP, and it's essentially the same you were doing before (I didn't disassemble the Shrink$ routine, but it probably does exactly that: call MOVERSx and fix the string length and the TEMPOB block chain). Before you were copying to TEMPTOP to guarantee this, now you think your object will always be at TEMPTOP? If your string is not at TEMPTOP, any references to objects above yours would need to be updated too. How about using multiple separate strings? You can keep a vector of pointers to different string objects. When you need more space, you allocate more in a separate block, then add its pointer to the vector. When you need less, simply abandon the chunk as it becomes empty. Reading/writing to the string would be more work, since you need to span across blocks, but you would never need to move large amounts of memory. Claudio === Subject: Error message & Vista posting-account=T97vPQoAAAC9kmDX8CtmaQ4OwIkCSTTi 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0),gzip(gfe),gzip(gfe) When trying to backup my 50g using Conn4x I now get the following error message (with XP). Conn4x Error (Unable to open file C:Documents and SettingsNigelDesktop Arch49.hp - WinErr=2) I can copy individual files to Notepad though. Things have always worked OK before. Any ideas anyone please? Whilst I'm at it, any ideas why I can't get Conn4x to work on our new Vista laptop please? N === the smallest fraction? I used to have such a program. I may have ripped it out of a library. I seemed to have pressed the clear memory button of my mind and can't remember what it was. -roger === posting-account=Rr1BpAoAAAC35AO1lUfz6ZegzjxdWL8v Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) > the smallest fraction? I used to have such a program. I may have ripped it > out of a library. I seemed to have pressed the clear memory button of my mind and can't > remember what it was. > -roger ->Q === posting-account=sOAX1QkAAAC-FcySTSbz29Uk8huUtFRz CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) the smallest fraction? ÊI used to have such a program. I may have ripped it > out of a library. I seemed to have pressed the clear memory button of my mind and can't > remember what it was. > -roger ->Q You could also write a quick UserRPL program using continued fractions. Then, depending on the precision you would like, you can take a convergent of the continued fraction expansion. The built-in - >Q function does not give you this flexibility of choice of precision. 2. It saves whatever is in stack level 2 as 'A' and calculates the continued fraction expansion of the value in stack level 1 to the Ath convergent and calls that list B and outputs it to stack level 1. %%HP: T(3)A(R)F(.); << SWAP ->NUM 'A' STO { } 'B' STO WHILE B SIZE A < REPEAT DUP FLOOR B SWAP AUGMENT 'B' STO FP INV END DROP B >> Example input: 2: 7 1: sqrt{2} output: 1: {1 2 2 2 2 2 2} S.C. === >> as >> the smallest fraction? I used to have such a program. I may have ripped >> it >> out of a library. >> I seemed to have pressed the clear memory button of my mind and can't >> remember what it was. >> -roger ->Q Do you know where this is to be found? === posting-account=3jaL5goAAAC5RVn_frnxP4vBW_7w-oi1 Gecko/2008030714 Firefox/3.0b4,gzip(gfe),gzip(gfe) Hi all, ... >> ->Q > Do you know where this is to be found? Press [LS] [9] [NXT] and 3rd menu key. The program shown below is similar to the PROPFRAC command (hp49/50 series) << DUP DUP SIGN -> s << IF FP 0 =/ THEN s * IP LASTARG ->Q DUP OBJ-> DROP2 4 PICK * - LASTARG DROP SWAP 2 ->LIST |^MATCH DROP + -1 s == IF THEN NEG END END >> HTH :DJ === > Hi all, ... > ->Q > Do you know where this is to be found? Press [LS] [9] [NXT] and 3rd menu key. The program shown below is similar to the PROPFRAC command (hp49/50 > series) << DUP DUP SIGN -> s > << > IF FP 0 =/ > THEN s * IP LASTARG ->Q DUP OBJ-> DROP2 4 PICK * - LASTARG DROP > SWAP 2 ->LIST |^MATCH DROP + -1 s == > IF > THEN NEG > END > END > HTH > :DJ === Subject: Re: (hp50g) don't access 2d/3d plot function posting-account=ky6NnQoAAAAl8HjjF10EUMKbzXiIKhTR Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) > I have this problem on the real hp50g and also on the emulated hp50g > on the PC. > Where is the problem? What are the conditions to access this function? > the brief documentation don't say nothing. I am not entirely sure if I understand you correctly but: To access any of the top row left shifted functions you have to hold down the left shift button (white button on 50g) then pressing the top row key, ie. hold down left shift, press F4 to get to the 2D/3D function. === Subject: Re: (hp50g) don't access 2d/3d plot function > To access any of the top row left shifted functions you have to hold > down the left shift button (white button on 50g) then pressing the top > row key, ie. hold down left shift, press F4 to get to the 2D/3D function. Holding the shift key is necessary in RPN mode (not in Alg mode), because shift keys normally modify menus in other ways in RPN mode, for which shift and hold was invented to create more options. On the emulator, you can hold down a key either by holding down the equivalent computer keyboard key instead, or by right-mouse-clicking the on-screen key. As a thought experiment, note that the top row keys of the 49/50 series have only one special shift definition above each key. In RPN mode, the normal shift definitions of the VAR menu are that the left and right shift keys act like STO and RCL, respectively, when pressed just before a VAR menu key. If you neglect to hold the shift key while trying to access a special top-row function, which mistake would you prefer to happen, an accidental STO into or an accidental RCL of a variable? With HP's choice, you get an accidental STO; would that have been your choice? Note that the RCL function on the keyboard is also a shifted function, and that it likewise uses the same shift key which implies STO in the VAR menu (the original HP48S[X]/G[X] used the same shift key that means RCL in the VAR menu, which seems superior to me, just as would the opposite choice for all the top row keys). But alas, It's over, and can't be helped, and that's one consolation, as they always say in Turkey, when they cut the wrong man's head off http://www.worldwideschool.org/library/books/lit/charlesdickens/ThePickwickP apers/chap23.html Related rant: === Subject: Re: Dynamic Memory Allocation posting-account=zYTuBQoAAAC_bXzGjGVT5rxv8bOnpefP Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) >I would like to create a two-dimensional array to store (x,y) >coordinates. If my array size is 1000 but only contains elements one >and 999, I don't want to allocate memory for 1000 elements. How would >I create functions similar to the malloc(), calloc(), and realloc() >functions used in C programming? RPL dynamically allocates memory. You can just create a Nx2 matrix. > N increases as you add points. If the points must be indexed, then > use a Nx3 matrix. E.g.: 1 10 20 3 ->ARRY @ first point 10,20, index 1 > 999 30 40 3 ->ARRY @ 2nd point 30,40, index 999 > 2 ROW-> @ create 2x3 matrix | 1 10 20 | > | 999 30 40 | To append: ROW-> @ break out into arrays and number of arrays > 'n' STO @ store number of arrays > 500 50 60 3 ->ARRY @ 3rd point 50,60, index 500 > 'n' RCL @ recall n (2) > 1 + @ 2 + 1 = 3 > ROW -> @ create 3x3 matrix | 1 10 20 | > | 999 30 40 | > | 500 50 60 | Deleting: 2 ROW- DROP @ dump row 2, index 999 | 1 10 20 | > | 500 50 60 | Editing, read up on GET/PUT. Sorting, searching? You're on your own. :-) BTW, you can also do this with lists of lists or lists of arrays and > probably a number of other ways. I need to restate my question concerning dynamic memory allocation. I > think my question concerns indexing as well. Suppose I'm given a list > of 1000 pairs of (x, y) coordinates. Each pair represents the (x, y) > coordinates of an object on a construction site such as a building > corner, center of a sewer manhole, etc. I want to store some, but not > all of these coordinate pairs in a variable. I don't need all of the > coordinate pairs because on a particular day I'm only working with a > building. Suppose I need to store 4 coordinate pairs (I'll refer to > them as point numbers) as 3-D vectors [index, x, y], so I can use the > first element as an index, to begin with. The point numbers are > random. In practice, point numbers are usually not renumbered because > it is too confusing and time consuming. To begin with I have: { [1, 200, 300] ... [200, 200, 400] ... [500, 350, 400] ... [999, 350, > 300] } So now I have only 4 point numbers stored in a list that was allocated > for 1000 point numbers. This was the basis of my original question > concerning dynamic memory allocation. I guess if I need to recall > point number 999, I would have to use a FOR loop and test every point > number in the list for the index value. This would be very time > consuming. I still don't like the idea having all that empty space > between point numbers either. This is what I'm pondering. This is > meant to be in reference to the built-in HP 50g functions or to HPGCC > (C-language system). How about you store all 1000 points as a 1000x2 matrix on your SD card. No need to store the index since you can use the row number as the index number. Then when you need 4 points: 1. Recall the large 1000x2 matrix with all points to the stack (this 2. Reverse sort the index numbers, i.e. 999, 500, 200, 1. 3. Use INDEX_NUMBER ROW-, this deletes the row from the matrix, but will leave the matrix on the stack. Do this for each row you need, in reverse order. 4. Dump the matrix from the stack. E.g. :3:POINTS RCL @ RCL Matrix from SD {n1 n2 n3 ...} @ space delimited list of index numbers (rows) << SORT REVLIST -> p @ sort and reverse list (high to low) << 1 p SIZE FOR i @ for each index p GET ROW- @ get and delete that ROW from the matrix on level 2 SWAP @ swap row with matrix NEXT @ do it again >> DROP @ dump the matrix @ post processing code here, see below >> The stack will have a N (p SIZE) [x y] arrays. The rows will be in reverse index order, to sort use: p SIZE ->LIST REVLIST OBJ-> DROP To combine in to a single matrix use: p SIZE ROW-> For a list use: p SIZE ->LIST Then store as a local variable for your code. === Subject: Re: Dynamic Memory Allocation posting-account=zYTuBQoAAAC_bXzGjGVT5rxv8bOnpefP Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) ... Google formatting messed up the code, here it is again: :3:POINTS RCL @ RCL Matrix from SD {n1 n2 n3 ...} @ space delimited list of index numbers, @ i.e. (rows) << SORT REVLIST -> p @ sort and reverse list (high to low) << 1 p SIZE FOR i @ for each index p GET ROW- @ get and delete that ROW from the matrix @ on level 2 SWAP @ swap row with matrix NEXT @ do it again >> DROP @ dump the matrix @ post processing code here, see below >> === Subject: Re: Dynamic Memory Allocation posting-account=5jQj0AoAAAAGAGJcqkkpunLMBpVi1N5o 2.0.50727),gzip(gfe),gzip(gfe) ... Google formatting messed up the code, here it is again: :3:POINTS RCL Ê Ê Ê Ê @ RCL Matrix from SD > {n1 n2 n3 ...} Ê Ê Ê Ê Ê@ space delimited list of index numbers, > Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê @ Ê i.e. (rows) > << SORT REVLIST -> p Ê Ê@ sort and reverse list (high to low) > Ê << 1 p SIZE FOR i Ê Ê @ for each index > Ê Ê Êp GET ROW- Ê Ê Ê Ê @ get and delete that ROW from the matrix > Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê @ Ê on level 2 > Ê Ê ÊSWAP Ê Ê Ê Ê Ê Ê Ê @ swap row with matrix > Ê Ê ÊNEXT Ê Ê Ê Ê Ê Ê Ê @ do it again > Ê > Ê DROP Ê Ê Ê Ê Ê Ê Ê Ê Ê@ dump the matrix > Ê @ post processing code here, see below - Hide quoted text - - Show quoted text - clears up the indexing. I'm still not firm on the dynamic memory allocation scenario. Like you pointed out in a previous post, the HP 50g does it. I suppose if you need a larger matrix during the course of using your program then the program would either redimension the matrix or create a larger one and then copy the existing elements to it. I wanted to mention that I was always most impressed with commercial surveying software that had superior coordinate point searching and sorting routines. Some examples of that would be last number stored, first available point, available point numbers, renumber a block of points, etc. There were and still are some very talented programmers out there. They certainly made my job easier and sparked my curiosity about programming. === Subject: Re: Dynamic Memory Allocation posting-account=Q2CEjQoAAACue5ZDDhUeRzv1w0u8hxZE Gecko/2008030714 Firefox/3.0b4,gzip(gfe),gzip(gfe) > matrix or create a larger > one and then copy the existing elements to it. ÊI wanted to mention > that I was always most impressed with commercial surveying software > that had superior coordinate point searching and sorting routines. Most of them used a static block of memory that allowed easy reading of point numbers and so on. When you know exactly where and how big a point record is, things are quick and easy. This meant if you used point 1 and then point 1000, you'd actually be reserving memory for 1-1000. Of course, they could also do it dynamically, but the performance was always much less. None of them really had good searching until ours (http://pssllc.com - instantaneous searches, wildcards, etc) > They certainly made my job easier and sparked my curiosity about > programming. Are you interested in just calculator languages, or so you want to learn about C and HPGCC? All the database operations, point plotting, raw data storage and so on for our surveying package on the calculator are available freely under the GPL. I am putting the finishing touches on good documentation for the libraries and expect to have it ready for posting within a day or so. It would take some general programming knowledge to integrate with RPL commands, but you seem like you have a basic understanding. Email me and I'll send the link. TW === Subject: Re: Dynamic Memory Allocation posting-account=zYTuBQoAAAC_bXzGjGVT5rxv8bOnpefP Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) ... > I wanted to mention > that I was always most impressed with commercial surveying software > that had superior coordinate point searching and sorting routines. > Some examples of that would be last number stored, first available > point, available point numbers, renumber a block of points, etc. > There were and still are some very talented programmers out there. > They certainly made my job easier and sparked my curiosity about > programming. For that I would recommend C. === Subject: Re: new ROM? (was: In 50g, how to compute Fourier transform??) > Basically, I'm wondering if BP's [2.10] rom includes (at a minimum) > all the fixes that would have made it into the official [2.10] release > [if it had been released, which it wasn't] As I said, I would suspect it to be identical in all non-CAS flash banks, and updated in the CAS (though I do not know whether anything changed besides adding Geometry and Spreadsheet functions). The fact that it identifies itself as 2.10 suggests that it must have been based on the non-released standard 2.10 compilation, re-linked with a special CAS, but as I did not create this, I do not know from personal experience. > It seems quite obvious to me that that the Geometry app would have no > impact unless used, except in the case that including it moved some > unsupported rom pointers that are in use by some 3rd party programs. All external calls to functions in flash banks other than bank zero are by flashptr, which is by function number, not an address (a table within the bank itself converts function numbers to actual addresses, and is automatically adjusted for each compilation of the bank), so I wouldn't worry about this, even in the case of software made by the few people (or one in particular) who like to live dangerously, using unstable bank zero addresses. > The spreadsheet is not quite as obvious, seeing as it is fairly > closely tied to the matrix editor, although assuming he took some > reasonable precautions (as I expect he did) > it should not be a problem either. I don't recall ever hearing of any matrix editor problem. > Speaking of installing that rom, I'm having real trouble. > Often I cannot connect to the ftp server, but even when i can, > It gives me an error if I try to enter the xcas directory At ftp://ftp-fourier.ujf-grenoble.fr/ (with anonymous login) both my browser and another FTP client show linux as a directory (empty), and all the other entries (including pub) as files (not accessible). Quel dommage :( [r->] [OFF] === Subject: Re: new ROM? (was: In 50g, how to compute Fourier transform??) Speaking of Fourier transform: ftp> open ftp-fourier.ujf-grenoble.fr Connected to malherbe.ujf-grenoble.fr. 220 (vsFTPd 2.0.5) User (malherbe.ujf-grenoble.fr:(none)): anonymous 331 Please specify the password. Password: 230 Login successful. ftp> dir 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. lrwxrwxrwx 1 0 65534 5 Feb 05 12:19 debian -> linux drwxr-sr-x 2 0 50 4096 Feb 05 12:20 linux lrwxrwxrwx 1 0 65534 9 Feb 05 12:20 pub -> linux/pub lrwxrwxrwx 1 0 65534 10 Feb 05 12:20 xcas -> linux/xcas 226 Directory send OK. ftp: 286 bytes received in 0.02Seconds 17.88Kbytes/sec. ftp> cd linux 250 Directory successfully changed. ftp> dir 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. 226 Directory send OK. ftp> cd .. 250 Directory successfully changed. ftp> dir 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. lrwxrwxrwx 1 0 65534 5 Feb 05 12:19 debian -> linux drwxr-sr-x 2 0 50 4096 Feb 05 12:20 linux lrwxrwxrwx 1 0 65534 9 Feb 05 12:20 pub -> linux/pub lrwxrwxrwx 1 0 65534 10 Feb 05 12:20 xcas -> linux/xcas 226 Directory send OK. ftp: 286 bytes received in 0.02Seconds 17.88Kbytes/sec. ftp> cd xcas 550 Failed to change directory. ftp> cd pub 550 Failed to change directory. ftp> bye . === Subject: Re: Think Lithium! posting-account=aJhvMAoAAABqICGF80eSUn6d3D9SANQE Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) > 7-8 years ago. I used two 18650cells from a _bad_ old laptop battery at > this time. Four years ago I used this torch in my garage for > repairing my car. Every once in a while, the differences in meanings between American English and British English can be somewhat humorous (er, uh, humourous). In light of regular reports of the behavior (behaviour) of laptop batteries, I found this to be such a case. Sony Laptop Battery Torches Desk http://blog.wired.com/gadgets/2007/06/sony_laptop_bat.html Let's hope your garage and car faired better with your torch than the desk did. -wes === Subject: Re: Think Lithium! > Every once in a while, the differences in meanings between American > English and British English can be somewhat humorous (er, uh, > humourous). I fear the humour is not so easy to see if your mother language is German. .-) > Sony Laptop Battery Torches Desk > http://blog.wired.com/gadgets/2007/06/sony_laptop_bat.html > Let's hope your garage and car faired better with your torch than > the desk did. Hhm I will read your link later, because this email is writen in my garage with my beautiful Zaurus and his nice LCD that needs no torch. :-D Olaf === Subject: Re: Think Lithium! > Every once in a while, the differences in meanings between American >> English and British English can be somewhat humorous (er, uh, >> humourous). I fear the humour is not so easy to see if your mother language > is German. .-) Huh? that't easy, try www.leo.org ;) But i'll try to explane it: torch is one word for the german Taschenlampe - but only in british english. In american english torch ist a person who lights something in order to destroy it, and to torch means just that: to light s.th. to destroy. Teh correct word fpr Taschenlampe in american english is flashlight Volker who is, like you, NOT an english person ;) -- Im .9fbrigen bin ich der meinung, dass TCPA/TCG verhindert werden muss === Subject: Re: Think Lithium! > 7-8 years ago. I used two 18650cells from a _bad_ old laptop battery at > this time. Four years ago I used this torch in my garage for > repairing my car. Every once in a while, the differences in meanings between American > English and British English can be somewhat humorous (er, uh, > humourous). In light of regular reports of the behavior (behaviour) > of laptop batteries, I found this to be such a case. Sony Laptop Battery Torches Desk > http://blog.wired.com/gadgets/2007/06/sony_laptop_bat.html Let's hope your garage and car faired better with your torch than > the desk did. -wes Was it G.B.Shaw who remarked that Great Britain and the United States were two countries separated by a common language?