Post Reply 
Garbage names in the cas vars menu
10-23-2019, 02:26 PM (This post was last modified: 10-24-2019 10:20 AM by rombva.)
Post: #1
Garbage names in the cas vars menu
I wrote the program for the cas mode.

Code:
#cas
zf74(X,Y,γ,a,b):=
BEGIN
LOCAL f,v;
PRINT("---------------------------------");
PRINT("W#7, P#4:");
γ:=unapply(γ,x);
X:=unapply(X,{x,y});
Y:=unapply(Y,{x,y});
f:=expand(simplify(subst(X(x,y)+Y(x,y)*diff(γ(x),x),y=γ(x))));
PRINT("f(x)="+f+";");
PRINT("F(x)="+expand(simplify(∫(f,x)))+";");
v:=∫(f,x,a[1],b[1]);
PRINT(suppress("∫(f(x)"," ")+", x, "+a[1]+", "+b[1]+")="+v+when(FP(v)≠0,"="+ROUND(v,4),"")+";");
PRINT("---------------------------------");
1;
END;
#end

After a lot of runs in the CAS Vars menu the garbage or/and empty-names variables appear. This issue happens while running my other cas programs.

Command line:
[Image: 7rd27zF9FJ.png]

Before running:
[Image: v51afl7w10.png]

After running:
[Image: F3A2wTINS4.png]

CAS Vars mem:
[Image: Bywhn1K4cc.png]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Garbage names in the cas vars menu - rombva - 10-23-2019 02:26 PM



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