Question: fprint error ?

Question:fprint error ?

kh2n 220 Maple

 

restart:with(plots):

F:=((g*(-rho2+rho1)*S+rho2*g*L+PV-PL)/((-1+R)*S+L))/((PV-PL)/L+g*rho2);

(1)

p1:=plot([subs(rho1=958,L=1,PV=101,PL=70,g=0,rho2=0.597,mu1=277.53,mu2=12.55,R=22,F),subs(rho1=958,L=1,PV=101,PL=70,g=9.8,rho2=0.597,mu1=277.53,mu2=12.55,R=22,F),subs(rho1=958,L=1,PV=101,PL=70,R=22,g=-9.8,rho2=0.597,R=22,F)],S=0..1,color=[black,red,green]):display(p1);

 

Q1:=[op([1,1..-2], p1)]:   

for i from 1 to nops(Q1) do        

fprintf("c:/temp/implotdata.txt","%f",Q1[i]);

fprintf("c:/temp/implotdata.txt","\n"); end do:    

fclose("c:/temp/implotdata.txt");

Error, (in fprintf) number expected for floating point format

 

 

Download aaa.mws

Please Wait...