for indexPath in arr[indexPath.row] {...}
char buffer[BUFSIZ];
for(;;) {
csocket = Accept(lsocket, NULL, 0);
send(csocket, buffer, BUFSIZ, 0);//
...
printf("Client"); //
recv(csocket, buffer, BUFSIZ,0);//
for (int i = 0; i < listlength; i++) {
if (listmember(i) != fd) {
rc = write(fd, buf, count);
...
import numpy as np
import matplotlib.pyplot as plt
def solve(n,m):
h = 0.001
c = -0.4
T = 1.9
xmin = 0.2
xmax = 2.2
r = 0.1
tau = r*h
r = tau*c/h
t = []
for i in range(n):
t.append(i*tay)
X = np.linspace(xmin,xmax,m)
U = np.zeros((n, m))
for i in range(0, n):
U[i, 0] = np.exp(-X[i]/2)
for j in range(1, m):
for i in range(1, n):
U[i, j] = (1-c*r)*U[i,j-1] + c*r*U[i-1,j] + tau*(np.log(1+t[i])-2*X[j])
plt.plot(X, U[:,i])
plt.show()
solve(100,100)
a= -2.82474a= -2.829961a= -2.835114a= -2.8402a= -2.845223a= -2.850184a= -2.855085a= -2.859928a= -2.864714a= -2.869445a= -2.874124a= -2.87875a= -2.883326a= -2.887853a= -2.892332a= -2.896765a= -2.901152a= -2.905495a= -2.909796a= -2.914054a= -2.918271a= -2.922449a= -2.926587a= -2.930688a= -2.934751a= -2.938777a= -2.942768a= -2.946724a= -2.950647a= -2.954535a= -2.958392a= -2.962216a= -2.966009a= -2.969771a= -2.973504a= -2.977206a= -2.98088a= -2.984526a= -2.988144a= -2.991735a= -2.995299a= -2.998837a= -3.002349a= -3.005835a= -3.009297a= -3.012735a= -3.016148a= -3.019538a= -3.022905a= -3.026249a= -3.029571a= -3.032871a= -3.036149a= -3.039406a= -3.042642a= -3.045857a= -3.049052a= -3.052227a= -3.055382a= -3.058518a= -3.061635a= -3.064733a= -3.067812a= -3.070874a= -3.073917a= -3.076943a= -3.079951a= -3.082942a= -3.085916a= -3.088874a= -3.091814a= -3.094739a= -3.097648a= -3.10054a= -3.103417a= -3.106279a= -3.109125a= -3.111957a= -3.114774a= -3.117576a= -3.120363a= -3.123136a= -3.125896a= -3.128641a= -3.131372a= -3.13409a= -3.136795a= -3.139486a= -3.142165a= -3.14483a= -3.147482a= -3.150122a= -3.15275a= -3.155365a= -3.157968a= -3.160559a= -3.163137a= -3.165704a= -3.16826a= -3.170804[1] 1
a= -3.0799511284648347
a= -3.0829421561467614
a= -3.0859162223314067
a= -3.088873563590893
a= -3.091814411130312
a= -3.0947389909531733
a= -3.0976475240204637
a= -3.100540226403606
a= -3.1034173094316118
a= -3.106278979832682
a= -3.109125439870509
a= -3.1119568874755243
a= -3.1147735163713106
a= -3.117575516196389
a= -3.1203630726216
a= -3.1231363674632484
a= -3.125895578792212
a= -3.1286408810391797
a= -3.131372445096188
a= -3.1340904384146033
a= -3.1367950250997123
a= -3.1394863660020484
a= -3.142164618805602
a= -3.1448299381130265
a= -3.1474824755279833
a= -3.150122379734718
a= -3.1527497965750007
a= -3.1553648691225167
a= -3.157967737754826
a= -3.160558540222972
a= -3.163137411718842
a= -3.1657044849403597
a= -3.1682598901545984