Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Yes, a real programming question in the lounge...

Yes, a real programming question in the lounge...

Scheduled Pinned Locked Moved The Lounge
helpquestionandroid
20 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Chris C B

    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

    OriginalGriffO Offline
    OriginalGriffO Offline
    OriginalGriff
    wrote on last edited by
    #2

    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 have no idea what I did, but I'm taking full credit for it." - ThisOldTony
    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

    C M 2 Replies Last reply
    0
    • OriginalGriffO OriginalGriff

      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!

      C Offline
      C Offline
      Chris C B
      wrote on last edited by
      #3

      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.

      OriginalGriffO 1 Reply Last reply
      0
      • C Chris C B

        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

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #4

        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

        C 1 Reply Last reply
        0
        • C Chris C B

          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.

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #5

          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!

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          C 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            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!

            C Offline
            C Offline
            Chris C B
            wrote on last edited by
            #6

            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.

            1 Reply Last reply
            0
            • L Lost User

              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

              C Offline
              C Offline
              Chris C B
              wrote on last edited by
              #7

              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.

              1 Reply Last reply
              0
              • C Chris C B

                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

                Mike HankeyM Offline
                Mike HankeyM Offline
                Mike Hankey
                wrote on last edited by
                #8

                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

                C 1 Reply Last reply
                0
                • C Chris C B

                  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

                  P Offline
                  P Offline
                  phil o
                  wrote on last edited by
                  #9

                  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 }

                  C 1 Reply Last reply
                  0
                  • Mike HankeyM Mike Hankey

                    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

                    C Offline
                    C Offline
                    Chris C B
                    wrote on last edited by
                    #10

                    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!

                    Mike HankeyM 1 Reply Last reply
                    0
                    • P phil 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 }

                      C Offline
                      C Offline
                      Chris C B
                      wrote on last edited by
                      #11

                      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!

                      P 1 Reply Last reply
                      0
                      • C Chris C B

                        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!

                        P Offline
                        P Offline
                        phil o
                        wrote on last edited by
                        #12

                        You're welcome :)

                        enum HumanBool { Yes, No, Maybe, Perhaps, Probably, ProbablyNot, MostLikely, MostUnlikely, HellYes, HellNo, Wtf }

                        1 Reply Last reply
                        0
                        • C Chris C B

                          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!

                          Mike HankeyM Offline
                          Mike HankeyM Offline
                          Mike Hankey
                          wrote on last edited by
                          #13

                          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

                          C 1 Reply Last reply
                          0
                          • Mike HankeyM Mike Hankey

                            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

                            C Offline
                            C Offline
                            Chris C B
                            wrote on last edited by
                            #14

                            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.

                            Mike HankeyM 1 Reply Last reply
                            0
                            • C Chris C B

                              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.

                              Mike HankeyM Offline
                              Mike HankeyM Offline
                              Mike Hankey
                              wrote on last edited by
                              #15

                              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

                              1 Reply Last reply
                              0
                              • C Chris C B

                                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

                                T Offline
                                T Offline
                                TrueCodePoet
                                wrote on last edited by
                                #16

                                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.

                                C 1 Reply Last reply
                                0
                                • T TrueCodePoet

                                  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.

                                  C Offline
                                  C Offline
                                  Chris C B
                                  wrote on last edited by
                                  #17

                                  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!

                                  1 Reply Last reply
                                  0
                                  • OriginalGriffO OriginalGriff

                                    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!

                                    M Offline
                                    M Offline
                                    mischasan
                                    wrote on last edited by
                                    #18

                                    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.

                                    J 1 Reply Last reply
                                    0
                                    • M mischasan

                                      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.

                                      J Offline
                                      J Offline
                                      JohnnyCee
                                      wrote on last edited by
                                      #19

                                      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

                                      M 1 Reply Last reply
                                      0
                                      • J 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

                                        M Offline
                                        M Offline
                                        mischasan
                                        wrote on last edited by
                                        #20

                                        Yes, the HP/3000 was a stack machine; instruction set made one think of Forth.

                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • World
                                        • Users
                                        • Groups