Feenix

25 Reputation

4 Badges

9 years, 174 days

MaplePrimes Activity


These are questions asked by Feenix

I got a code file and i dont know how to load it in Linux. In Windows i just type:

read "E:/code.txt"

But thing now i change to use Linux and cant do the same (Maple 2015 64bit Linux ver), try to load

read "/root/Desktop/code.txt"

It show me that:

I click Cancel and it show me:

Hope can help me another ways to use and load my code to run.

Please help, here is my code:

 

findproot:=proc(f,var,k)
local i,g,B,n,L,tk;

readlib(rootbound):readlib(realroot):
B:=rootbound(f,var);
g:=expand(subs(var=B*var,f));
if B<1 then g:=numer(g);fi;
n:=degree(g,var);
L:=zero_one(g,var,n,1/B/2^k);
tk:=k+1:
while has(L,0) do
L:=zero_one(g,var,n,1/B/2^tk);
tk:=tk+1:
od:
if L=[] then RETURN([]);fi;
L:=map(proc(x,y) [op(1,x)*y,op(2,x)*y];end,L,B);
end:

 

I dont know why i cant run this code, it always report: 

Error, (in findproot) improper op or subscript selector

1 2 Page 2 of 2