tag:blogger.com,1999:blog-9169922911599301079.post4434487180942151117..comments2022-11-11T00:10:57.352-08:00Comments on Eddie's Math and Calculator Blog: HP Prime Programming Tutorial #2: MSGBOX, IF-THEN-ELSE, PRINT, FOREdward Shorehttp://www.blogger.com/profile/13278913865743064653noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-9169922911599301079.post-45299699519550264192017-07-07T14:19:30.164-07:002017-07-07T14:19:30.164-07:00Another exemple with 2 complex numbers:
EXPORT Sp...Another exemple with 2 complex numbers:<br /><br />EXPORT Specifying_Types_complex()<br />BEGIN<br />// Ask for complex [3]<br />LOCAL AnyVar,AnyVar2;<br />INPUT({{AnyVar,[3]},{AnyVar2,[3]}}, "Complex");<br />RETURN AnyVar*AnyVar2;<br />END;Vitor Mascarenhashttps://www.blogger.com/profile/16672139808656245964noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-64087312881915366392017-04-20T21:21:34.308-07:002017-04-20T21:21:34.308-07:00Consegui a resposta aqui mesmo. http://edspi31415....Consegui a resposta aqui mesmo. http://edspi31415.blogspot.com.br/2014/05/hp-prime-ways-to-use-input-command.html.<br /><br />Obrigado!Aquela Questãohttps://www.blogger.com/profile/02448347161871376014noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-1922442550256966762017-04-20T20:00:06.182-07:002017-04-20T20:00:06.182-07:00Good evening! I would like to know how to use the ...Good evening! I would like to know how to use the input command and enter a complex value in HP prime. Every time I try, invalid data appears. Thanks in advance.Aquela Questãohttps://www.blogger.com/profile/02448347161871376014noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-78788741207027260232016-12-05T18:40:41.968-08:002016-12-05T18:40:41.968-08:00Hi,
I tried to write your QROOTS program and it gi...Hi,<br />I tried to write your QROOTS program and it gives me a syntax error on line 1 right after the B variable in the parentheses. Do you what could be the problem?<br /><br />Thanks,<br />TristanAnonymoushttps://www.blogger.com/profile/14144836465207932639noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-79294037091302947472014-03-21T05:30:07.934-07:002014-03-21T05:30:07.934-07:00Thomas,
No it does not and I'll go ahead and ...Thomas,<br /><br />No it does not and I'll go ahead and edit the unnecessary variable "mat" in SUMDIV. I promise I am not always this bad in proofreading before posting. <br /><br />Again, many thanks and I will make the correction, it is very much appreciated.<br /><br />EddieEdward Shorehttps://www.blogger.com/profile/13278913865743064653noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-38679352133562387252014-03-21T05:23:32.243-07:002014-03-21T05:23:32.243-07:00Thank you for pointing this out, Thomas. I am goi...Thank you for pointing this out, Thomas. I am going to correct this error. <br /><br />EddieEdward Shorehttps://www.blogger.com/profile/13278913865743064653noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-22940572285166419582014-03-18T12:35:26.890-07:002014-03-18T12:35:26.890-07:00In the program COMLOCK, the following line has an ...In the program COMLOCK, the following line has an error:<br />L0:=RADNINT(3,0,39);<br /><br />It should be<br />L0:=RANDINT(3,0,39);<br /><br />TomL_12953https://www.blogger.com/profile/03692872399399370984noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-22695677982644241332014-03-18T12:33:37.213-07:002014-03-18T12:33:37.213-07:00In the program SUMDIV, a local variable called mat...In the program SUMDIV, a local variable called mat is declared. Is this used in the idivis function? SUMDIV doesn't use it anywhere.TomL_12953https://www.blogger.com/profile/03692872399399370984noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-67100483856374712212013-12-17T05:07:16.515-08:002013-12-17T05:07:16.515-08:00Wolfgang,
In a program, all CAS commands need to ...Wolfgang,<br /><br />In a program, all CAS commands need to have the "CAS." prefix. For example, CAS.diff and CAS.zeros. <br /><br />If you are working with algebraic or symbolic objects (such as functions or polynomials), you may have to enclose them with single quotes (Shift + Parenthesis key). <br /><br />Example in Home Mode:<br />CAS.diff('X^3-2') returns 3*X^2<br />CAS.zeros('X^3+4') returns [-1.58740105197] <br /><br />I recommend using zeros instead of solve in Home and programming mode. <br /><br /><br />EddieEdward Shorehttps://www.blogger.com/profile/13278913865743064653noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-80523233123184351472013-12-16T08:22:22.098-08:002013-12-16T08:22:22.098-08:00I like your tutorials very much. I tried some CAS ...I like your tutorials very much. I tried some CAS commands in a program to do some calculus operations, i. e. diff() and zeros() on a given function F1. It works well in the CAS view, but it doesn't in a program, not even with qualified variables or commands. What's wrong?<br /><br />Regards <br />Wolfgang (Germany)<br />Anonymoushttps://www.blogger.com/profile/10850126888970098587noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-23787647947026381812013-11-06T17:24:56.480-08:002013-11-06T17:24:56.480-08:00No problem, I am a big fan of the 50g myself. No problem, I am a big fan of the 50g myself. Edward Shorehttps://www.blogger.com/profile/13278913865743064653noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-44700512067121640682013-11-06T17:18:13.836-08:002013-11-06T17:18:13.836-08:00Thanks Alan. Appreciate the kind words. Thanks Alan. Appreciate the kind words. Edward Shorehttps://www.blogger.com/profile/13278913865743064653noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-70752130085452433852013-11-06T17:16:52.158-08:002013-11-06T17:16:52.158-08:00CAS commands are tricky. Some work well, like the...CAS commands are tricky. Some work well, like the Integer and other commands that produce primarily numerical results, and others not so well (like solve). I plan on going into this in more detail. <br /><br />EddieEdward Shorehttps://www.blogger.com/profile/13278913865743064653noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-92207414000400686172013-10-26T22:10:40.415-07:002013-10-26T22:10:40.415-07:00Thank you! This was very useful. I was just wonder...Thank you! This was very useful. I was just wondering how to use CAS commands inside HP Prime programs, and your tutorial clarified for me.<br />Anonymoushttps://www.blogger.com/profile/08345094522551509769noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-52731889654811700622013-10-26T14:47:43.549-07:002013-10-26T14:47:43.549-07:00Alright, another fine entry from Ed, good stuff.
...Alright, another fine entry from Ed, good stuff.<br /><br />Prime vs. 50g, they both have pro and cons, I like the fact that the 50g uses disposable batteries, so I'm never dry. Color? Well, I can live without. Zeta function, hah, if you knew how many times I've used it in my entire life...<br /><br />It's good to see that HP is building advanced calculators again, I wasn't really sure the 50g wouldn't be the last one. As far as the prime, well, I've done all my studies with a 48gx and that was my generation's calculator. The Prime is probably targeted at people much younger than I.<br /><br />I use the 50g almost on a daily basis, and when I need to do some heavy lifting, I still rely on Mathematica, I'm not sure the Prime could replace either one, at least for me. I've never used anything but reverse polish on a calculator, I'm not sure I have the time or devotion to learn a new language; but if my son gets one, I'm sure I'll pick up one as well and start investigating.<br /><br />That being said, I'm going to follow your series on the Prime very closely, but I'll stick to my 50g for the time being. It works for me.<br /><br />Cheers!veganmanhttps://www.blogger.com/profile/12110683523619624358noreply@blogger.comtag:blogger.com,1999:blog-9169922911599301079.post-64579883361463321582013-10-26T14:25:07.126-07:002013-10-26T14:25:07.126-07:00Very nice. Thanks. This machine is really growing ...Very nice. Thanks. This machine is really growing on me. Very fun.Alanhttps://www.blogger.com/profile/16913647003844626545noreply@blogger.com