I cant get this code working no matter how much i change. Can anyone please check for me and help me?
In[50]:= var1 = graph1[input1];
In[76]:=
soln3 = Simplify[
Solve[{iout == (k*((vdd - vin - vt)*(vdd -
vo[t]) - ((vdd - vo[t])^2/2)) - (k/2*(vin - vt)^2)),
vin == m*t}, iout, {vin}]];
During evaluation of In[76]:= Solve::ratnz: Solve was unable to solve the system with inexact coefficients. The answer was obtained by solving a corresponding exact system and numericizing the result. >>
In[77]:= stage2[t] = iout /. Part[Part[soln3, 1], 1];
In[75]:= soln4 =
NDSolve[{vo'[t] == stage2[t]/c0, vo[input1] == var1}, {vo[t]}, {t,
input1, vdd/m}];
During evaluation of In[75]:= NDSolve::ndinnt: Initial condition graph1[1.*10^-9] is not a number or a rectangular array of numbers. >>
In[78]:= graph2[t_] = vo[t] /. Part[Part[soln4, 1], 1];
During evaluation of In[78]:= ReplaceAll::reps: {(vo^[Prime])[t]==100000000000 (0.07 -4.*10^7 t-5.*10^15 t^2+(0.01 +1.*10^7 t) vo[t]-0.005 vo[t]^2)} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing. >>
In[79]:= root2 = FindRoot[temp*m == graph2[temp] - vt {temp, input1}];
During evaluation of In[79]:= FindRoot::argmu: FindRoot called with 1 argument; 2 or more arguments are expected. >>
In[58]:= input2 = Part[Part[root2, 1], 2];
Plot[graph2[t], {t, input1, input2},
PlotRange -> {{input1, input2}, All},
PlotStyle -> Gray, Frame -> True, GridLines -> Automatic,
FrameTicks -> Automatic, AspectRatio -> 0.5, ImageSize -> {500, 250}]
During evaluation of In[126]:= ReplaceAll::reps: {(vo^[Prime])[temp]==100000000000 (0.07 -4.*10^7 temp-5.*10^15 temp^2+(0.01 +1.*10^7 temp) vo[temp]-0.005 vo[temp]^2),vo[1/1000000000]==graph1[1/1000000000]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing. >>
During evaluation of In[126]:= Plot::prng: Value of option PlotRange -> {{1/1000000000,{-temp+(vo[temp]/. {(vo^[Prime])[temp]==100000000000 Plus[<<5>>],vo[1/1000000000]==graph1[1/1000000000]}),-(1/1000000000)+(vo[temp]/. {(vo^[Prime])[temp]==<<1>>,<<1>>})}},All} is not All, Full, Automatic, a positive machine number, or an appropriate list of range specifications. >>
During evaluation of In[126]:= ReplaceAll::reps: {(vo^[Prime])[temp]==1.*10^11 (0.07 -4.*10^7 temp-5.*10^15 temp^2+(0.01 +1.*10^7 temp) vo[temp]-0.005 vo[temp]^2),vo[1.*10^-9]==graph1[1.*10^-9]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing. >>
During evaluation of In[126]:= ReplaceAll::reps: {(vo^[Prime])[temp]==1.*10^11 (0.07 -4.*10^7 temp-5.*10^15 temp^2+(0.01 +1.*10^7 temp) vo[temp]-0.005 vo[temp]^2),vo[1.*10^-9]==graph1[1.*10^-9]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing. >>
During evaluation of In[126]:= General::stop: Further output of ReplaceAll::reps will be suppressed during this calculation. >>
During evaluation of In[126]:= Plot::plln: Limiting value {-temp+(vo[temp]/. {(vo^[Prime])[temp]==100000000000 (0.07 +Times[<<2>>]+Times[<<2>>]+Times[<<2>>]+Times[<<2>>]),vo[1/1000000000]==graph1[1/1000000000]}),-(1/1000000000)+(<<1>>)} in {graph2[t],input1,input2} is not a machine-sized real number. >>
Out[126]= Plot[graph2[t], {graph2[t], input1, input2},
PlotRange -> {{input1, input2}, All}, PlotStyle -> Gray,
Frame -> True, GridLines -> Automatic, FrameTicks -> Automatic,
AspectRatio -> 0.5, ImageSize -> {500, 250}]