Help for a "Surface and Flux integrals" program - 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: Help for a "Surface and Flux integrals" program (/thread-9433.html) |
RE: Help for a "Surface and Flux integrals" program - Arno K - 11-06-2017 08:44 PM Another topic to be documented. Arno RE: Help for a "Surface and Flux integrals" program - Arno K - 11-06-2017 08:57 PM (11-06-2017 06:49 PM)salvomic Wrote:I added to the posted program the two lines with purge(u) and purge(v) and made u and v local until the problem is solved.(11-06-2017 06:37 PM)Arno K Wrote: No no, now it works, but I am not that contented with implementing of local variables and then purging them to avoid their occurance in memory-manager. RE: Help for a "Surface and Flux integrals" program - salvomic - 11-06-2017 09:13 PM (11-06-2017 08:57 PM)Arno K Wrote: I added to the posted program the two lines with purge(u) and purge(v) and made u and v local until the problem is solved. you have done well. When there will be a better solution we'll be able to avoid local u and v and also purge()... I have done the same in my program for Linear and curvilinear integrals (in Library) for the same purpose. RE: Help for a "Surface and Flux integrals" program - parisse - 11-07-2017 07:13 AM There is no better solution! Declaring symbolic variables as local variables and purge them after (or assume(.,DOM_SYMBOLIC)) is the recommanded way to use symbolic variables in a CAS function. RE: Help for a "Surface and Flux integrals" program - salvomic - 11-07-2017 08:32 AM (11-07-2017 07:13 AM)parisse Wrote: There is no better solution! Declaring symbolic variables as local variables and purge them after (or assume(.,DOM_SYMBOLIC)) is the recommanded way to use symbolic variables in a CAS function. well, thank you. I'm using this method and it's ok. RE: Help for a "Surface and Flux integrals" program - Arno K - 12-02-2017 05:02 PM Does not work anymore. Arno RE: Help for a "Surface and Flux integrals" program - salvomic - 12-02-2017 05:04 PM (12-02-2017 05:02 PM)Arno K Wrote: Does not work anymore.sfint()? and why? what is changed? I'm trying the example you wrote: Code:
Salvo RE: Help for a "Surface and Flux integrals" program - Arno K - 12-02-2017 05:23 PM It puts out shit on VC, works on HW, I will try a reset of VC and reinstall everything, I simply wanted to try debug with cas. Arno I cleared memory and reinstalled a backup, then it worked again, so upgrading still needs a memory wipe, at least from time to time. RE: Help for a "Surface and Flux integrals" program - salvomic - 12-02-2017 05:38 PM understood. I tried on HW and it worked... Maybe time to time a refresh of memory is needed, yes. |