Post Reply 
Help for a "Surface and Flux integrals" program
11-06-2017, 08:44 PM
Post: #41
RE: Help for a "Surface and Flux integrals" program
Another topic to be documented.
Arno
Find all posts by this user
Quote this message in a reply
11-06-2017, 08:57 PM
Post: #42
RE: Help for a "Surface and Flux integrals" program
(11-06-2017 06:49 PM)salvomic Wrote:  
(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.
Arno

I know, you are right, that's only a workaround, but the occurrence in memory manager leaves there variables that after some time could interfere with other commands or programs...
We need a real solution :-)

Salvo
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.
Find all posts by this user
Quote this message in a reply
11-06-2017, 09:13 PM
Post: #43
RE: Help for a "Surface and Flux integrals" program
(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.

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
11-07-2017, 07:13 AM
Post: #44
RE: Help for a "Surface and Flux integrals" program
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.
Find all posts by this user
Quote this message in a reply
11-07-2017, 08:32 AM
Post: #45
RE: Help for a "Surface and Flux integrals" program
(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.

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
12-02-2017, 05:02 PM
Post: #46
RE: Help for a "Surface and Flux integrals" program
Does not work anymore.
Arno
Find all posts by this user
Quote this message in a reply
12-02-2017, 05:04 PM (This post was last modified: 12-02-2017 05:10 PM by salvomic.)
Post: #47
RE: Help for a "Surface and Flux integrals" program
(12-02-2017 05:02 PM)Arno K Wrote:  Does not work anymore.
Arno
sfint()?
and why? what is changed?

I'm trying the example you wrote:
Code:

The surface of a paraboloid is then calculated:
sfint(1,[u*cos(v),u*sin(v),u^2],[0,1],[0,2*π]) which yields 1/6*(√5*5*π-π)
and I get still 1/6*(√5*5*π-π)...

Salvo

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
12-02-2017, 05:23 PM
Post: #48
RE: Help for a "Surface and Flux integrals" program
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.
Find all posts by this user
Quote this message in a reply
12-02-2017, 05:38 PM
Post: #49
RE: Help for a "Surface and Flux integrals" program
understood. I tried on HW and it worked...
Maybe time to time a refresh of memory is needed, yes.

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)