Tag Info

New answers tagged

0

Use PieceWise to define your function: StreamPlot[{1, Piecewise[{{0.4 p (1 - p/30), 0 < t <= 5}, {0.4 p (1 - p/30) - 0.25 p, t >= 5}}]}, {t, 0, 10}, {p, -5, 5}]


1

I was playing around SocketLink too. (And tried implementing a "pure" Mathematica server too!). About the OP's question, on my Windows 8.1 64bit, Doing more BinaryRead[inStream] than necessary will not crash the kernel, it will just wait for input, which blocks the main link. My workaround for this is using TimeConstrained: While[True, ...



Top 50 recent answers are included