SCalculator 3

Discussion in 'Share Your Creations' started by derez, Oct 30, 2007.

  1. derez

    derez Expert Licensed User

    I have upgraded the SCalculator:
    a. Addition of 15 levels of brackets and brackets window.
    b. Addition of factorial function N!
    c. Addition of DMS display function.
    d. Addition of MOD (modulu) function
    e. Addition of input scrolling.
    f. Buttons re-order and new labels
    g. Code improvement (by moving common tasks to common subs).
    h. Correction of bugs.

    You are invited to look at it and use it if you want to.
    The attached file contains the code and a setup program, including operating manual.
    It can run on the desktop but the inscriptions on the buttons do not fit.
    I shall appreciate comments and suggestions for improvements or additions (there are two spare buttons..)
     

    Attached Files:

  2. bdiscount

    bdiscount Active Member Licensed User

    Its well done in fact I have been using v2 as the calc in a shell for myself. I did add a exit button on v2 before compile to exe
    Why 2 blank buttons?
     
  3. derez

    derez Expert Licensed User

    Growth potential
    If you have a good idea how to use them - tell me
     
  4. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Very nice, I thought you'd be able to compact some of the code by combining it to common subs.
    This and the new features must have taken a significant amount of time :sign0188:

    Regards,
    RandomCoder
     
  5. derez

    derez Expert Licensed User

    Mainly by the use of "sender" for groups of keys with similar functionality
     
  6. alfcen

    alfcen Well-Known Member Licensed User

    Hello Derez,
    Impressed by your brainwork!
    Idea: what about adding bitwise.dll to perform Dec to Hex / Hex to Dec, etc. This will well occupy those two vacant buttons :)

    One more:

    Atnq (unlike Atn gets the correct quadrant)

    Code:
    Sub Atnq(x, y)
      z=
    Atan(x/y)
      
    if y < 0 Then z = z + cPI
      
    if y > 0 and x < 0 then z = z + cPI*2
      
    Return z
    End Sub
    Cheers
    Robert
     
  7. derez

    derez Expert Licensed User

    hex dex

    Thank you Alfcen
    I have considered the use of HEX and DEC but voted against , I don't feel that anybody really needs it (although you find it in most scientific calculators).
    And thanks for the ATNQ tip - it will be used !
    David
     
  8. alfcen

    alfcen Well-Known Member Licensed User

    No problem, David, I just find HEX-DEC-HEX or BIN-DEC-BIN conversions helpful during programming since basic4ppc has no immediate window like embVB.
    Anyway, looking forward to the next version :)
     
  9. petrbury

    petrbury Member Licensed User

    Hi,
    for me is HEX,BIN,DEC conversion very useful as well (and for everybody who makes programs for microcontrolers, I think). But I agree that most of users doesn't need it. Anyway your calculator is very nice, I like it.:sign0098:
    Petr
     
  10. bdiscount

    bdiscount Active Member Licensed User

    hex dec etc

    I use another program for hex etc but it would be nice in the scalc, Also ascii would be good then I could remove 2 programs. just my 2 cents
     
  11. Put Claude

    Put Claude Active Member Licensed User

    some usefull dec-hex-asc-shift-etc

    hi,

    For programmers off microcontrollers etc... I always use this, do not now where I fetch it years ago, but always use this... very helpfull!!!

    Put Claude Belgium
     
  12. petrbury

    petrbury Member Licensed User

    Looks nice, I'll try it.
    Thanks.
    Petr
     
  13. leo

    leo Member Licensed User

    Thanks !:)
     
  14. alfcen

    alfcen Well-Known Member Licensed User

    Sorry, if I missed it, David, have you implemented hyperbolic functions, such as...

    Code:
    Sub SinH(x)
      
    Return (cE^x - cE^(-x))/2
    End Sub
     
  15. derez

    derez Expert Licensed User

    No, since I do not remember a time that I had to use it.
    I remember that the shape of the electrical cables between the poles on the streets are COSH but I never needed to do anything with that.
    Still - there is Ln and e^x so the calculation, using memory, is straightforward.
     
  16. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Now your showing your true colours, do I detect that you are an engineer by trade??

    Regards,
    RandomCoder
     
  17. derez

    derez Expert Licensed User

    MSC in electrical engineering (computers, communication, RF, system)
     
  18. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Thought as much!
    I've a CEng Hons in Electrical and Electronic Engineering, did'nt feel that I wanted to go any higher... plus my employer probably wouldn't have allowed it.
    I did the control systems and mobile communications route :)

    Regards,
    RandomCoder
     
  19. Uli

    Uli Member Licensed User

    HEX to BIN

    I have to convert HEX to BIN on my job too and miss it too
    on SCalculator.
    But I can't run your PMABinary on my Laptop and on my PPC
    (HYTC Tytn II). For what device is it designed?
    Uli
     
  20. Put Claude

    Put Claude Active Member Licensed User

    Hi microcontrollers,

    Always have this when going bits and bytes...

    Put Claude Belgium
     
Loading...