hP PRIME - Notation of vector - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: hP PRIME - Notation of vector (/thread-3716.html) |
hP PRIME - Notation of vector - wChris79 - 04-26-2015 11:34 AM How to write a vector such as the vector AB with an arrow on AB ? Thanks, wChris79 RE: hP PRIME - Notation of vector - DrD - 04-26-2015 01:47 PM This? $$\vec{AB}$$ $$vector \vec{AB}$$ RE: hP PRIME - Notation of vector - wChris79 - 04-26-2015 01:51 PM Yes. How to get it in the PRINT function for example ? RE: hP PRIME - Notation of vector - DrD - 04-26-2015 02:04 PM Well, there is almost always a way to accomplish things, but a simple answer is that I'm not sure it is simple. One way to accomplish your objective is to use grob's. If you are familiar with the process involved in doing that, the world is at your fingertips. Otherwise, you would need to trek up the grob learning curve, which isn't all that hard to do. Mostly, it boils down to the dimgrob, rect, blit, and textout commands. Fast? No. Functional? Yes. -Dale- RE: hP PRIME - Notation of vector - wChris79 - 04-26-2015 02:31 PM OK. I will try the method specified. Thanks. wChris79. RE: hP PRIME - Notation of vector - wChris79 - 04-26-2015 07:15 PM With "TEXTOUT_P" it works... Thank you again. RE: hP PRIME - Notation of vector - Thomas_Sch - 04-27-2015 06:23 AM (04-26-2015 07:15 PM)wChris79 Wrote: With "TEXTOUT_P" it works...Could you please show your example? Thanks! RE: hP PRIME - Notation of vector - wChris79 - 04-27-2015 12:42 PM In fact I write 2 lines. And "PRINT" command can also be used. PRINT ("->"); PRINT (AB); -> I do not know to create a character like vector (AB) in 1 character. If you know how to thank you for letting me explain. RE: hP PRIME - Notation of vector - DrD - 04-27-2015 01:02 PM (04-27-2015 06:23 AM)Thomas_Sch Wrote:(04-26-2015 07:15 PM)wChris79 Wrote: With "TEXTOUT_P" it works...Could you please show your example? An example: Code:
-Dale- RE: hP PRIME - Notation of vector - Thomas_Sch - 04-27-2015 01:06 PM (04-27-2015 01:02 PM)DrD Wrote: An example:Hello Dale, thank you! RE: hP PRIME - Notation of vector - DrD - 04-27-2015 01:16 PM You're welcome. Awhile back, when we were discussing the Smith Chart program I was making, I needed to "rotate text," and I think it was Parisse that mentioned it wasn't possible, short of BLIT-ing this and that. Well, I almost wish he hadn't made that suggestion, as a couple of days later, I had it rotating text like crazy, but my brain was fried! It was fun(?) in some sort of self-punishing way. I also finally got all the resistance and reactance circles to terminate at the proper place. In all, most things are possible, to whatever extent one is willing to endure. -Dale- RE: hP PRIME - Notation of vector - DrD - 04-27-2015 01:26 PM As an after-thought, it sure would be handy if there was a built-in method to allow super/subscripting, ex post facto. That way you could embellish text with appropriate notation, (such as the arrow in this example), or maybe some subscripted enumeration, AFTER the base text was in place. This might work nicely by selecting the text item(s), invoking the function, and appending the sub/super to the selection. Maybe using a soft-key function from the shift-Chars key would make sense? Pretty sure this will never happen, but ... -Dale- RE: hP PRIME - Notation of vector - Thomas_Sch - 04-27-2015 03:28 PM (04-27-2015 01:16 PM)DrD Wrote: You're welcome. Awhile back, when we were discussing the Smith Chart program I was making, I needed to "rotate text," and I think it was Parisse that mentioned it wasn't possible, short of BLIT-ing this and that. Well, I almost wish he hadn't made that suggestion, as a couple of days later, I had it rotating text like crazy, but my brain was fried! It was fun(?) in some sort of self-punishing way. I also finally got all the resistance and reactance circles to terminate at the proper place.It's great to hear the news about the Smith Chart. Your attempts to rotate text had been very demanding, and the restrictions given by the resolution of the display are limiting the posibilities. If the available libraries are limited, extending them results in an extra project. Maybe an approach with zoom functions (showing labels after zooming in) will be interesting, but this will again distract from the Smith Chart himself. Do you want to show the current status? (screenshot?) RE: hP PRIME - Notation of vector - DrD - 04-27-2015 09:29 PM [/quote] It's great to hear the news about the Smith Chart. Your attempts to rotate text had been very demanding, and the restrictions given by the resolution of the display are limiting the posibilities. If the available libraries are limited, extending them results in an extra project. Maybe an approach with zoom functions (showing labels after zooming in) will be interesting, but this will again distract from the Smith Chart himself. Do you want to show the current status? (screenshot?) [/quote] Here's a screenshot of the Smith Chart so far. It seems just about the time I can see the end game, I want to add more features to it. So it is not completely up to my expectations, just yet. [attachment=1919] RE: hP PRIME - Notation of vector - Thomas_Sch - 04-28-2015 05:55 AM (04-27-2015 09:29 PM)DrD Wrote: Here's a screenshot of the Smith Chart so far. It seems just about the time I can see the end game, I want to add more features to it. So it is not completely up to my expectations, just yet.Thank you for the screenshot, in my opinion you now have a great inspiration for the functions! Good luck for the next steps, I'm eager to hear from your projects again. RE: hP PRIME - Notation of vector - salvomic - 04-28-2015 09:42 AM (04-27-2015 01:16 PM)DrD Wrote: You're welcome. Awhile back, when we were discussing the Smith Chart program I was making, I needed to "rotate text," and I think it was Parisse that mentioned it wasn't possible, short of BLIT-ing this and that. Well, I almost wish he hadn't made that suggestion, as a couple of days later, I had it rotating text like crazy, but my brain was fried! It was fun(?) in some sort of self-punishing way. I also finally got all the resistance and reactance circles to terminate at the proper place. nice to hear that, Dale! I'm an OM too that treat with antennas an so on..., and for me Smith chart is very interesting. Please, tell us other details about this project 73 Salvo RE: hP PRIME - Notation of vector - DrD - 04-28-2015 01:26 PM Discussion of the Smith Chart project should probably be moved to it's own thread, rather than hijack this one. I can give a quick overview: The initial goals were to be able to plot on a graphic chart: 1. gamma (reflection coefficient) or Zload parameters. 2. SWR in terms of forward and reflected power, and VSWR in terms of gamma or Zload. 3. The chart has a routine that allows clicking anywhere within, and displays the data point (complex) value in the upper right hand area; with the ability to clear all data, using a fresh chart. At this point, all of these things are implemented. Additionally, I want to include more dynamic details, including network development for impedance matching, and capturing S-parameter info. The "hell" of it was getting it all to work, and realizing afterwards how much better the coding could become, with benefit of experience. (translated: what NOT to do!). Most challenging was computing the reactance circles (or arcs, as they appear on the chart). Fortunately, once I figured out how to get the upper (inductive reactance) circles, the other half (capacitive reactance) was easy! The starting point is the same for all of them, but the termination point on the outer resistance circle was not so easy to get working, for this old guy! I find it very enjoyable, as I'm sure you do with your own projects, to carve away each technical difficulty, and see it finally emerge as the sculpture you (hopefully) envisioned. Other people, including my wife, see it as just another obsession! But, I'm always cautious NOT to mention anything about all that stupid fabric she collects, or the quilting remnants and other junk in her sewing room ... -Dale- |