[Scilab-users] How to use champ
shahriqeen
shahrizan.mazlan at yes.my
Wed Dec 16 02:45:01 CET 2015
Thanks for the solution of the system1
for system1 we use fchamp
How about the system 2 below, we need to use fchamp or champ?
funcprot(0)
function System2()
clc;
t=0:2:100;
y=0:2:100;
// initial value
t(1)=0;
y(1)=0;// g(x)
y1(1)=0.4; // for x
y2(1)=0.4; // for y
// Varible value
A=2.0;B=1.0;C=1.0;D=0.2;W=0.2;P=(1-exp(-1.2*2))/1.2;
n=length(t);
cnt=0;
for i = 1:n-1
y(i+1)=1/(C+y1(i))
y1(i+1)
=y1(i)*(1+(P*B*W))/(1-(B*P)+(B*P*W)+(B*P*y1(i))+(A*P*y(i+1)*y2(i)))//value
for x
y2(i+1) = y2(i)*(1+(P*y1(i)*y(i+1))-(D*P*W))/(1+P*D+D*P*W)//value
for y
cnt = cnt + 1;
end
plot2d(y1,y2,1);
xlabel('x');
ylabel ('y');
endfunction
--
View this message in context: http://mailinglists.scilab.org/How-to-use-champ-tp4033219p4033230.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list