Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10654 > unrolled thread

P controller

Started byPhoenix <mirko.tavano@live.com>
First post2012-06-27 08:14 +0000
Last post2012-06-27 08:14 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  P controller Phoenix <mirko.tavano@live.com> - 2012-06-27 08:14 +0000

#10654 — P controller

FromPhoenix <mirko.tavano@live.com>
Date2012-06-27 08:14 +0000
SubjectP controller
Message-ID<jsefdj$ia1$1@smc.vnet.net>
Hi there! I have to plot the following function but I can't and i don't know why!

Clear["Global`*"]
Fi = .1;
do = .18;
Ao = Pi*do^2/4;
Cd = .61;
g = 9.81;
A = 5;

hss = (Fi/(Ao*Cd))^2*(1/(2*9.81));

F[t_] := {
  If[t < 10, hSP = hss, hSP = 2*hss];
  DSolve[{h'[x] == (hSP - h[x])/A, h[0] == hss}, h, x]
  }

Plot[F[t], {t, 10, 20}]


It should be h=hss when t<10; h=E^(-0.2` x) (-2.115297927011188` + 4.230595854022376` E^(0.2` x))
when t>0.
I need them in the same graph.
Thanks!

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web