![]() |
Programming Question!!! - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: Programming Question!!! (/thread-58433.html) |
Programming Question!!! - Harrington - 06-13-2004 Ok this is what I have so far : Re: Programming Question!!! - James M. Prange (Michigan) - 06-14-2004 Well, yes, my idea is that it would be a lot easier to help you if you %%HP: T(3)A(R)F(.);seem a lot better than: Quote:Also, note that if you use the copy and paste method, I can just download your code to my calculator and try it out, rather than trying to key it in, correcting errors at the same time.
Regards, Re: Programming Question!!! - harrington r - 06-14-2004 oka thanks for the idea: my question was is it possible to excutues partfrac and call the solution into intergration in the same program . which the syntax yet has not been written.
Re: Programming Question!!! - James M. Prange (Michigan) - 06-14-2004 Do you mean that you want to use the result from PARTFRAC for something else in the program? Why not just DUP it and leave that copy on the stack for later use? Like this: %%HP: T(3)A(R)F(.);Regards. James Re: Programming Question!!! - Harrington - 06-14-2004 yes but I inten to implement another built in function integrate to slove the residues from the Partfrac get it
Galling and appalling!!! - Karl Schneider - 06-15-2004 "Harrington" -- An excerpt from James Prange's reply to your first post:
Quote: Your three posts, verbatim:
Quote: I doubt that you're illiterate, but it doesn't seem that you value the time and effort spent by people from whom you ask assistance. I own the 28C, 48G, and 49G, but freely admit that I don't know RPL well enough to help (nor do I desire to become more proficient). If I were James, though, I wouldn't take the time to provide further counsel. I just don't think you "get it".
-- Karl S.
Re: Programming Question!!! - James M. Prange (Michigan) - 06-15-2004 No, I'm not at all sure that I "get it". By "Partfrac", do you mean
Please do make an effort to write standard English. Try to write not
Doesn't having the result from PARTFRAC on the stack help? You can use
For what you're doing, it seems to me that it may be better to have %%HP: T(3)A(R)F(.);Also, there's no need to use a local variable structure for this program. The above program takes an object from the stack, stores it to a local variable, and then puts the contents of the local variable back on the stack and uses it for the argument to PARTFRAC, and finally removes the local variable when it's done. Why jump through so many hoops? Maybe try: %%HP: T(3)A(R)F(.);That's smaller and faster, and ends up accomplishing the same thing.
Regards, |