HP PRIME 02 - Solving an equation, programming and complex numbers.

Sdílet
Vložit
  • čas přidán 11. 09. 2024

Komentáře • 54

  • @viniciusgotosleep
    @viniciusgotosleep Před 10 měsíci +3

    I'm starting electrical engineering, this video has absolutely sold me on the HP Prime above the others. Operating it looks so seamless compared to the others.

  • @BunkerSquirrel
    @BunkerSquirrel Před 7 lety +29

    I love my Prime to death. I’ve had this thing for almost a year and it still blows me away how much it can do. Cheers!

  • @technics6215
    @technics6215 Před 2 lety +3

    This is the best explanation how HP Prime can be used in electrical engineering. Thank you Sir.

  • @chef1arjunaidi
    @chef1arjunaidi Před 4 lety +7

    Thanks, Professor. After keeping the Prime in cold storage for a long time, i finally learned how to create a program. You're the best, I wished you were my professor. Looking forward to learning from you again.

    • @rolinychupetin
      @rolinychupetin  Před 4 lety +4

      Once you get acquainted with the CAS of the Prime, you'll neer look back. I only wished that it had existed when I was an undergraduate student. But then again, I was the transition generation from slide rules to the HP-35, the first one, the original one. I still remember the thrill of finding a sine, or a cosine just at the press of a key (before the 35, engineering students used booklets with tables to find logs and sines cosines and the like.)

    • @nagyelraheb4165
      @nagyelraheb4165 Před 10 měsíci

      Thank you for your videos. I'm an engineer who has the same memories of sin, cos and log tables on our desks during an exam :) I remember the smile on my face when my first calculator gave an answer of "E" for 5 divided by zero :))@@rolinychupetin

  • @henrikkliebhan4874
    @henrikkliebhan4874 Před 8 měsíci +1

    Superb video, with a high density of information and the granularity to understand the idea behind the method you show. I like your approach to explain in such a "friendly advisor mode"!

  • @VictorNoelCoryPaz
    @VictorNoelCoryPaz Před 7 lety +6

    Thank you. Great educational videos.

  • @marlonhermilio
    @marlonhermilio Před 6 lety +6

    Muchas gracias señor rollini chupetin

    • @rolinychupetin
      @rolinychupetin  Před 6 lety

      Si va a courses.ece.ubc.ca/elec202 y entra en la opcion de "FREE SOFTWARE", encontrara los listados de los programitas que uso en mis videos, como los cinco de solucion de triangulos, SSS, SSA y otros. Tambien los de manipulacion de numeros complejos. Buena suerte.

  • @kevinclaypool6345
    @kevinclaypool6345 Před rokem +2

    Super useful thanks!

  • @crocellian2972
    @crocellian2972 Před 7 lety +4

    Great. Do more.

  • @Alaayedi
    @Alaayedi Před 4 lety +1

    Very nice and beautiful explanation, thank you sir

  • @darioeufrausinodesousa4055

    HP the best calculador.

    • @rolinychupetin
      @rolinychupetin  Před 4 lety

      so far ... let's see what they come up with next. :)

  • @Cosecant18
    @Cosecant18 Před 5 lety +2

    Awsome! Thanks!

  • @pm_1
    @pm_1 Před 8 měsíci

    Dear Professor,
    Thank you for your channel. It is valuable. But I think I see a "bug" in the RR program. RETURN should not use the "()" to return value - using it, you return the complex number a real part :). I noticed that by a small mistake. I wanted to round the output to 2 digits, so I wrote RETURN(ROUND(r1*r2/(r1+r2)),2). I was surprised that the evaluation was x+2i. I made a mistake, and I realized output is a complex number. Now I have "RETURN ROUND(r1*r2/(r1+r2),2)", and it works perfectly.

    • @rolinychupetin
      @rolinychupetin  Před 8 měsíci

      I waited before responding to give time for you to realize the actual source of the wrong operation of your program. Here it goes. The line that you wrote, let me copy it RETURN(ROUND(r1*r2/(r1+r2)),2) has an error indeed, but it is not the optional parentheses after RETURN, it is that you closed the ROUND( bracket too early, it should be after the ",2" so the ROUND function receives the two parameters that it expects. Do try RETURN(ROUND(r1*r2/(r1+r2),2)). I commend your willingness to explore functions in the PRIME, but I strongly advise against using ROUND in what will be an intermediate result in a longer and more complex computation. The loss of those digits may, most likely, add up to a wrong final answer in the solution using RR. I've advised my students against that in class, and I thought it fair to add the same advice here. Thanks for your contribution and enthusiasm. There used to be a course on the propagation of errors in long computations. It was part of a Physics lab in the first year. I hope that it is still taught.

  • @dionlemans6747
    @dionlemans6747 Před 2 lety +1

    Strangely i get an syntax error, can anyone explain me why? i've filled the program exactly the same in on my prime and checked it three times?

  • @shantk7378
    @shantk7378 Před 2 lety +1

    Great series of videos! How would you suggest increasing the number of paralleled resistor values in the program from just 2 values to many (R1,R2,Rn...)?

    • @rolinychupetin
      @rolinychupetin  Před 2 lety +3

      Great suggestion! Here it is below. The trade off is that the input is a list of the resistances to be connected in parallel, example: RPR({3,5,2}) returns ... well, you'll see. You can make that list as long as you need to. the code is relatively straightforward too:
      EXPORT RPR(m)
      BEGIN
      LOCAL gtotal,n,ix;
      n:=size(m);
      FOR ix FROM 1 TO n STEP 1 DO
      gtotal:=gtotal+1/m(ix);
      END;
      RETURN(1/gtotal);
      END;

    • @shantk7378
      @shantk7378 Před 2 lety

      @@rolinychupetin Thank you! This is great. I would love to see a video on some of the other programs you've written such as the Butterworth and Chebyshev filter programs! I am absolutely loving the HP Prime.

  • @anhvunguyen1989
    @anhvunguyen1989 Před 7 měsíci

    Dear Professor,
    Apologies for the late comment, I just found and purchased a HP Prime G2 for my Engineering studies, and am very grateful for your videos.
    For this one, however, when I tried to solve for w using the exact steps you have mentioned, instead of nice numbers, I got some very strange, long results with _y and _x.
    Do you know why this may be the case and how it can be changed?
    (FYI I have tried again with the virtual emulator, and got the same result)

    • @rolinychupetin
      @rolinychupetin  Před 7 měsíci

      Try using fsolve instead of solve and let me know.

  • @vdmur7952
    @vdmur7952 Před 4 lety +1

    Great!

  • @mattneff1262
    @mattneff1262 Před 11 měsíci

    Professor, do you prefer the newer programming environment over the classic RPL?

  • @caulist
    @caulist Před 7 lety +2

    Boa noite professor,
    Queria sua opinião pessoal por gentileza sobre se compensa trocar a hp50g pela hp prime.
    Pois tenho a hp 48 a mais de 15 anos e ela tem uma peculiaridade que a prime não tem:2100 funcoes embutidas (nativas), o que ajuda muito pra programar a mesma.coisa que a prime não tem.pois tenho mais de 50 programas na 50g e estes programas não é compatível com a prime.grato.
    Claudio
    Bahia _ brasil

    • @rolinychupetin
      @rolinychupetin  Před 7 lety +3

      Prezado Sr. Claudio,
      Eu mesmo, segurei meu HP-50g durante o tempo que pude. Mas o tempo não aguarda ninguém. O HP-50g ainda é uma máquina poderosa, mas o HP-PRIME é como o HP-50g em esteróides. É verdade que você terá que traduzir todos os seus programas para Pascal (o idioma nativo do HP-50g). Mas Pascal é tão amigável (foi concebido como uma língua para escrever programas fáceis de ler) que a tradução será direta e gratificante, uma ótima oportunidade para aprender o poder do HP-PRIME.
      No entanto, se você se sentir muito confortável com seu HP-48gx (eu também tenho um desses), e não falta nada, e você não sente como aprender uma máquina / idioma totalmente novo e recodando cinquenta programas, então mantenha o 48gx .

  • @homo192
    @homo192 Před 7 měsíci

    When I press check after writing this simple resistor program, the (physical G2) device returns a "syntax error". I'm stuck there.

    • @rolinychupetin
      @rolinychupetin  Před 6 měsíci

      The syntax error sends the cursor to the "offending" bit in the code. It could be as simple as a typo in the name of a variable.

  • @technics6215
    @technics6215 Před 2 lety

    Do I need HP Prime calculator, or there is PC software that remembers programs and settings? I have Prime emulator for Android, but entering big equations is a bit painful on calculator keyboard

  • @charlesschwer1792
    @charlesschwer1792 Před 7 lety +1

    HP 50, piece of cake. HP Prime, I get answers but I do not know what I am doing.

    • @rolinychupetin
      @rolinychupetin  Před 7 lety +5

      I love the HP-50g too, but they don't make it anymore. I used to have three HP-50gs, but my daughter put one of them in the washing machine, along with my blankets :( I also have an HP-49gx, and I used to have an HP-67, and HP-25, (my brother lost my HP-35, original package, a vintage machine), and of course my HP-41c. The HP-Prime, in my opinion, is a worthy successor to this aristocratic line of machines.

    • @charlesschwer1792
      @charlesschwer1792 Před 7 lety

      rolinychupetin You are right, I checked at Amazon, there are already gone. They are used, and no one knows what version they are selling. I have 2.15 and do not want to go back to 2.08. Times are changing.

  • @AnnaVahtera
    @AnnaVahtera Před 4 lety +1

    On the off-chance someone reads this so far after the video was released: WHY do you have to remember to add the multiplication sign? Can't the HP Prime understand "2x"? Do you always have to specify the multiplication sign, even if you don't in, like, any other brand calculator, ever?

    • @rolinychupetin
      @rolinychupetin  Před 4 lety +4

      You can write 2x, and the Prime will understand that you mean 2*x, but if you want to type x2, then you must include the x*2.

    • @AnnaVahtera
      @AnnaVahtera Před 4 lety

      @@rolinychupetin Thank you!

  • @andrelclucato
    @andrelclucato Před 3 lety

    I had a HP 48S, then a 48GX. Now I've just bought a HP prime.
    However, in the 48, at the solve app, i used to use the equations with or without units. More than that, whit any unit as desired, since compatible with the equation.
    Is that possible on HP Prime?
    I'dnt figured out how to do this.
    In the equation V=S.t, entering S in 'm', t in 's', I could get 'S' in mph, or kph, or ly/y, independently of others units.
    Is that possible in the Prime?

    • @rolinychupetin
      @rolinychupetin  Před 3 lety +1

      Dear Mr. Lucato,
      Usually, the equations that I solve with the HP Prime imply the units. For instance, in an induction motor, the rotating magnetic field angular velocity can be given by three different formulas depending on the units: (1) n = f/p (n in revolution per second, f in hertz and p has no units); or perhaps (2) n = 60f/p (n in revolution per minute, f in hertz and p without units); or even (3) w = 2 pi f / p (w in radians per second, f in hertz and p without units). Similarly in everyithing else of electric equipment and electronics that I work with. So the equation is different depending on the units. The CAS deals with the math, not with the units. I hope that this answers your question.
      Regards,

    • @andrelclucato
      @andrelclucato Před 3 lety

      @@rolinychupetin Yes, I understand. I think this is a disadvantage for the Prime, but I have to deal with that. Thank you!

    • @alistercarmichael4990
      @alistercarmichael4990 Před 2 lety

      The firmware now (2022) has unit conversion and si representation. Some constants are also part of the OS.
      You could build scaling factors in as the prof suggests, use a unit type for each (quantity) variable, express the output as a unit, or use the converter as a distinct operation after calculation.
      I am new to this device but it looks like just about anything can be mixed together as long as we are mindful of our reference units.

  • @gabrielaaiolfi4843
    @gabrielaaiolfi4843 Před 6 lety

    Can i solve the last equation simply using the "i" intead of defining j?

    • @rolinychupetin
      @rolinychupetin  Před 3 lety +1

      of course. I define 'j' as in common practice in electrical engineering because 'i' is (in EE) usually a current.

  • @EstesZ7
    @EstesZ7 Před 7 lety

    How do you solve a system of complex equations?

  • @phrack9998
    @phrack9998 Před 7 lety

    Thanks for the video, but I cannot duplicate your answers on the last part with j and Omega formula. I've tried it both in the Android app and the PC emulator. I've verified my settings to what you had in the first video and followed step by step in both videos but I can't get it to simplify to a simple answer. What I get has a _x at the beginning added to a whole bunch of different operations at solve (IM(Req)=0,w) part.

    • @rolinychupetin
      @rolinychupetin  Před 7 lety

      I suggest that you delete variables that may have been defined in your calculator and may be replaced into the expressions that you are working with. Something like that did happen to me at some point in the past. In a future video we will explore variables in the HP-PRIME.

    • @phrack9998
      @phrack9998 Před 7 lety

      rolinychupetin I did try a Purge on the variables to no avail. I'm was also a fresh install that I used to follow along with.

    • @rolinychupetin
      @rolinychupetin  Před 7 lety

      I'll leave your question open on this board with the hope that another of the readers can comment and find the answer to this conundrum.