|
Yeah, i break regularly to clear my head. even housework. it's a marathon this, not a sprint.
=)
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Doesn't it look like it says "Ome" giant leap?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
That's what it does say. Matthew!
|
|
|
|
|
Try a refresh. There should have been an update to fix that sneaky one that got through.
cheers
Chris Maunder
|
|
|
|
|
It's Dutch and it means "Bob's your uncle"
|
|
|
|
|
Well, not so much, really. I know you will all forgive me when I tell you it's about BASIC!
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?
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.
Edit: Me minds goin' - it was a 75C not a 95C!
modified 20-Jul-19 7:47am.
|
|
|
|
|
|
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!
|
|
|
|
|
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.
|
|
|
|
|
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, the HP/3000 was a stack machine; instruction set made one think of Forth.
|
|
|
|
|
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
modified 19-Jan-21 21:04pm.
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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!
|
|
|
|
|
You're welcome
enum HumanBool { Yes, No, Maybe, Perhaps, Probably, ProbablyNot, MostLikely, MostUnlikely, HellYes, HellNo, Wtf }
|
|
|
|
|
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!
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!
|
|
|
|