Yes, a real programming question in the lounge...
-
Well, not so much, really. I know you will all forgive me when I tell you it's about BASIC! :laugh: Some while A long time ago I had an HP 95C 75Ccalculator for which I wrote what was at that time a fairly useful program, in the only supported language - HP BASIC. It was larger than would fit in the 24K available, so I had jump through all sorts of hoops to get it to fit - like using ASCII characters to represent some integers. I no longer have the 95C 75C, and have some how lost the manual - unusual for me - but I do still have the code listings, but there are no code comments, as space did not permit. I do have one listing with scribbled comments on it, but they are sparse in the extreme. Now I am in semi-retirement, I thought I would rewrite it for my Android - and here's the problem. I made heavy use of a built-in function ANGLE(X,Y) but I cannot remember precisely what it did. Bear in mind that I was stuck with one character variable names plus A0 through Z9. I presume it took two sides of a right triangle and returned an angle - but which one? :suss: So, gentlemen, your mission, if you choose to accept it, is burrow away in your memories and let me know which two sides were used to provide the angle. :cool: Edit: Me minds goin' - it was a 75C not a 95C! :-O
-
Well, not so much, really. I know you will all forgive me when I tell you it's about BASIC! :laugh: Some while A long time ago I had an HP 95C 75Ccalculator for which I wrote what was at that time a fairly useful program, in the only supported language - HP BASIC. It was larger than would fit in the 24K available, so I had jump through all sorts of hoops to get it to fit - like using ASCII characters to represent some integers. I no longer have the 95C 75C, and have some how lost the manual - unusual for me - but I do still have the code listings, but there are no code comments, as space did not permit. I do have one listing with scribbled comments on it, but they are sparse in the extreme. Now I am in semi-retirement, I thought I would rewrite it for my Android - and here's the problem. I made heavy use of a built-in function ANGLE(X,Y) but I cannot remember precisely what it did. Bear in mind that I was stuck with one character variable names plus A0 through Z9. I presume it took two sides of a right triangle and returned an angle - but which one? :suss: So, gentlemen, your mission, if you choose to accept it, is burrow away in your memories and let me know which two sides were used to provide the angle. :cool: Edit: Me minds goin' - it was a 75C not a 95C! :-O
I don't know that this will help, but ... HP Museum[^] lists a CD scan of the manual for $10: https://www.hpmuseum.org/95cman.jpg[^] Documents on the Museum Document Set[^]
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
I don't know that this will help, but ... HP Museum[^] lists a CD scan of the manual for $10: https://www.hpmuseum.org/95cman.jpg[^] Documents on the Museum Document Set[^]
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
Thanks for that - I now realize it was the 75C not the 95C that I had and have edited my post, and it came with two manuals - an owners manual and a reference manual. However, they have both manuals on the same CD, so I will take a punt anyway, as there are other things I need to understand - for instance, the HP 'READ' command is not standard BASIC.
-
Well, not so much, really. I know you will all forgive me when I tell you it's about BASIC! :laugh: Some while A long time ago I had an HP 95C 75Ccalculator for which I wrote what was at that time a fairly useful program, in the only supported language - HP BASIC. It was larger than would fit in the 24K available, so I had jump through all sorts of hoops to get it to fit - like using ASCII characters to represent some integers. I no longer have the 95C 75C, and have some how lost the manual - unusual for me - but I do still have the code listings, but there are no code comments, as space did not permit. I do have one listing with scribbled comments on it, but they are sparse in the extreme. Now I am in semi-retirement, I thought I would rewrite it for my Android - and here's the problem. I made heavy use of a built-in function ANGLE(X,Y) but I cannot remember precisely what it did. Bear in mind that I was stuck with one character variable names plus A0 through Z9. I presume it took two sides of a right triangle and returned an angle - but which one? :suss: So, gentlemen, your mission, if you choose to accept it, is burrow away in your memories and let me know which two sides were used to provide the angle. :cool: Edit: Me minds goin' - it was a 75C not a 95C! :-O
-
Thanks for that - I now realize it was the 75C not the 95C that I had and have edited my post, and it came with two manuals - an owners manual and a reference manual. However, they have both manuals on the same CD, so I will take a punt anyway, as there are other things I need to understand - for instance, the HP 'READ' command is not standard BASIC.
Is this of any use? go75c - HP75C hardware emulator[^]
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
Is this of any use? go75c - HP75C hardware emulator[^]
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
Interesting! Astounded that someone would build that! I think I would rather rewrite the program in java, as I am slowly doing, than type in hundreds of lines code on an emulator. Anyhow, I have some planned improvements that would burst a 24K emulator. Very interesting, though, thanks.
-
Yes, most propably it is the angle. I think it is directly comparable with
atan2
which you will find in c++, c# etc.It does not solve my Problem, but it answers my question
I think you are right, but I also suspect that it is upside down - instead of ANGLE(y,x) as for Atan2, it is ANGLE(x,y), but giving the same answer. Anyhoo, I have ordered the CD suggested by Griff, and paid the extra $9 for airmail delivery, so I should be out of my misery sometime next week.
-
Well, not so much, really. I know you will all forgive me when I tell you it's about BASIC! :laugh: Some while A long time ago I had an HP 95C 75Ccalculator for which I wrote what was at that time a fairly useful program, in the only supported language - HP BASIC. It was larger than would fit in the 24K available, so I had jump through all sorts of hoops to get it to fit - like using ASCII characters to represent some integers. I no longer have the 95C 75C, and have some how lost the manual - unusual for me - but I do still have the code listings, but there are no code comments, as space did not permit. I do have one listing with scribbled comments on it, but they are sparse in the extreme. Now I am in semi-retirement, I thought I would rewrite it for my Android - and here's the problem. I made heavy use of a built-in function ANGLE(X,Y) but I cannot remember precisely what it did. Bear in mind that I was stuck with one character variable names plus A0 through Z9. I presume it took two sides of a right triangle and returned an angle - but which one? :suss: So, gentlemen, your mission, if you choose to accept it, is burrow away in your memories and let me know which two sides were used to provide the angle. :cool: Edit: Me minds goin' - it was a 75C not a 95C! :-O
The manual can be downloaded from here[^]...free
Technician 1. A person that fixes stuff you can't. 2. One who does precision guesswork based on unreliable data provided by those of questionable knowledge. JaxCoder.com
-
Well, not so much, really. I know you will all forgive me when I tell you it's about BASIC! :laugh: Some while A long time ago I had an HP 95C 75Ccalculator for which I wrote what was at that time a fairly useful program, in the only supported language - HP BASIC. It was larger than would fit in the 24K available, so I had jump through all sorts of hoops to get it to fit - like using ASCII characters to represent some integers. I no longer have the 95C 75C, and have some how lost the manual - unusual for me - but I do still have the code listings, but there are no code comments, as space did not permit. I do have one listing with scribbled comments on it, but they are sparse in the extreme. Now I am in semi-retirement, I thought I would rewrite it for my Android - and here's the problem. I made heavy use of a built-in function ANGLE(X,Y) but I cannot remember precisely what it did. Bear in mind that I was stuck with one character variable names plus A0 through Z9. I presume it took two sides of a right triangle and returned an angle - but which one? :suss: So, gentlemen, your mission, if you choose to accept it, is burrow away in your memories and let me know which two sides were used to provide the angle. :cool: Edit: Me minds goin' - it was a 75C not a 95C! :-O
According to the manual: ANGLE(X,Y) Arctangent of Y/X, in proper quadrant. That is, returns the angle θ formed between the x-axis and the point (x,y), such that -π < θ <= π.
enum HumanBool { Yes, No, Maybe, Perhaps, Probably, ProbablyNot, MostLikely, MostUnlikely, HellYes, HellNo, Wtf }
-
The manual can be downloaded from here[^]...free
Technician 1. A person that fixes stuff you can't. 2. One who does precision guesswork based on unreliable data provided by those of questionable knowledge. JaxCoder.com
-
According to the manual: ANGLE(X,Y) Arctangent of Y/X, in proper quadrant. That is, returns the angle θ formed between the x-axis and the point (x,y), such that -π < θ <= π.
enum HumanBool { Yes, No, Maybe, Perhaps, Probably, ProbablyNot, MostLikely, MostUnlikely, HellYes, HellNo, Wtf }
-
Thanks very much! I now remember it from your description. I also understand why I used it so much in the program, and shall now write my own version of the function. Thanks!
-
Oh sod it! Just downloaded it, but not had a chance to peruse yet. Coulda saved myself 19 bucks! Never mind - I'll just look on it as a fine for having weak Googlefu. :-\ Any, thanks!
I do the same thing more often then I care to admit!
Technician 1. A person that fixes stuff you can't. 2. One who does precision guesswork based on unreliable data provided by those of questionable knowledge. JaxCoder.com
-
I do the same thing more often then I care to admit!
Technician 1. A person that fixes stuff you can't. 2. One who does precision guesswork based on unreliable data provided by those of questionable knowledge. JaxCoder.com
It's going to save me a lot of time, anyway, as I won't see the CD for at least two weeks. Having now had a browse, I have also found the table of 256 special characters that I used for integers, so I can now backtrack onto all the many constants used in close to a thousand polynomial terms.
-
It's going to save me a lot of time, anyway, as I won't see the CD for at least two weeks. Having now had a browse, I have also found the table of 256 special characters that I used for integers, so I can now backtrack onto all the many constants used in close to a thousand polynomial terms.
Awesome glad it helped. Mr. Google is a pretty smart fella!
Technician 1. A person that fixes stuff you can't. 2. One who does precision guesswork based on unreliable data provided by those of questionable knowledge. JaxCoder.com
-
Well, not so much, really. I know you will all forgive me when I tell you it's about BASIC! :laugh: Some while A long time ago I had an HP 95C 75Ccalculator for which I wrote what was at that time a fairly useful program, in the only supported language - HP BASIC. It was larger than would fit in the 24K available, so I had jump through all sorts of hoops to get it to fit - like using ASCII characters to represent some integers. I no longer have the 95C 75C, and have some how lost the manual - unusual for me - but I do still have the code listings, but there are no code comments, as space did not permit. I do have one listing with scribbled comments on it, but they are sparse in the extreme. Now I am in semi-retirement, I thought I would rewrite it for my Android - and here's the problem. I made heavy use of a built-in function ANGLE(X,Y) but I cannot remember precisely what it did. Bear in mind that I was stuck with one character variable names plus A0 through Z9. I presume it took two sides of a right triangle and returned an angle - but which one? :suss: So, gentlemen, your mission, if you choose to accept it, is burrow away in your memories and let me know which two sides were used to provide the angle. :cool: Edit: Me minds goin' - it was a 75C not a 95C! :-O
Give this a try: Link ANGLE(X,Y) Arctangent of Y/X, in proper quadrant. That is, returns the angle theta formed between the x-axis and the point (x,y), such that -pi < theta <= pi.
-
Give this a try: Link ANGLE(X,Y) Arctangent of Y/X, in proper quadrant. That is, returns the angle theta formed between the x-axis and the point (x,y), such that -pi < theta <= pi.
Thanks very much for that - wish I had two days ago! It will help out in understanding some other obscure stuff as well, where I have forgotten what I wrote it for nearly 40 years ago! :omg: In fact it is the same as ArcTan2 with the input reversed. I had used it in a user defined function to turn the angle of a line defined by x and y coordinates into a bearing between 0 and 360 degrees. Anyway, thanks!
-
I don't know that this will help, but ... HP Museum[^] lists a CD scan of the manual for $10: https://www.hpmuseum.org/95cman.jpg[^] Documents on the Museum Document Set[^]
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
Thinking of HP: remember SPL/3000? The *system* program language for the HP/3000 -- I never saw any assembler And it was ... Algol ! :-) Clean, powerful. Wikipedia says it survived the transition from the 3000 to PA-RISC.
Yes, I remember some SPL. OK, very little. TOS? Was that a register that held a pointer to the top of the stack? I also remember programming HP "smart terminals" with escape sequences. For the more powerful terminals, one could draw polygons with escape sequences and thus produce various charts and other diagrams.
JohnnyCee
-
Yes, I remember some SPL. OK, very little. TOS? Was that a register that held a pointer to the top of the stack? I also remember programming HP "smart terminals" with escape sequences. For the more powerful terminals, one could draw polygons with escape sequences and thus produce various charts and other diagrams.
JohnnyCee