Dear nffddn,
it is quite difficult to debug your code. O think that there are many mistakes in it, to the extent that it is difficult to understand what you want to achieve.
Your code starts with this:
(* Graphics Options *)
aRatio = 6/11; iSize = {11/2.54*72,
6/2.54*72}; (* 11 cm by 6 cm graph *)
aRatio2 =
5/18; iSize2 = {18*25, 5*25};
iSize3D = {11/2.54*72, 7/2.54*72}; view = {2, 1, 2}; view1 = {4,
1, 2}; (* 11 cm by 7 cm graph *)
font1 = {"Courier", FontSize -> 10, FontWeight -> "Bold"};
pStyle1 = {RGBColor[0.8, 0, 0], PointSize[0.015],
Thickness[0.007]}; (* Default colour for single graph *)
pStyleB = {GrayLevel[0], PointSize[0.015],
Thickness[0.007]}; (* Black *)
pStyle3D = {GrayLevel[0.8], PointSize[0.015],
Thickness[0.007]}; (* 3D Graphics *)
pStyle21 = {RGBColor[1, 0, 0], PointSize[0.015],
Thickness[0.007]}; (* Default colours for 2 graphs *)
pStyle22 = {RGBColor[0.3, 0, 0], PointSize[0.015], Thickness[0.007]};
pStyle31 = {RGBColor[1, 0, 0], PointSize[0.015],
Thickness[0.007]}; (* Default colours for 3 graphs *)
pStyle32 = {RGBColor[0, 0, 0], PointSize[0.015], Thickness[0.007]};
pStyle33 = {GrayLevel[0.5], PointSize[0.015], Thickness[0.007]};
pStyle31 = {RGBColor[0.8, 0, 0], PointSize[0.015],
Thickness[0.007]}; (* Alt. Default colours for 3 graphs *)
pStyle32 = {RGBColor[0.1, 0, 0.4], PointSize[0.015], Thickness[0.007]};
pStyle33 = {GrayLevel[0.5], PointSize[0.015], Thickness[0.007]};
pStyle61 = {RGBColor[0.5, 0.5, 0], PointSize[0.02],
Thickness[0.007]};
pStyle62 = {RGBColor[0.3, 0.7, 0], PointSize[0.02],
Thickness[0.007]};
pStyle63 = {RGBColor[1., 0, 0], PointSize[0.02], Thickness[0.007]};
pStyle64 = {GrayLevel[0.5], PointSize[0.02], Thickness[0.007]};
pStyle65 = {RGBColor[0.1, 0, 0.4], PointSize[0.02],
Thickness[0.007]};
pStyle66 = {RGBColor[0.2, 0, 0.7], PointSize[0.02],
Thickness[0.007]};
pStyle71 = {RGBColor[0.8, 0.2, 0], PointSize[0.02],
Thickness[0.007]};
pStyle72 = {RGBColor[1, 0, 0], PointSize[0.02], Thickness[0.007]};
pStyle73 = {RGBColor[0.2, 0.8, 0], PointSize[0.02],
Thickness[0.007]};
pStyle74 = {RGBColor[0.1, 1, 0], PointSize[0.02], Thickness[0.007]};
pStyle75 = {GrayLevel[0.5], PointSize[0.02], Thickness[0.007]};
pStyle76 = {RGBColor[0.1, 0, 0.4], PointSize[0.02],
Thickness[0.007]};
pStyle77 = {RGBColor[0.2, 0, 0.7], PointSize[0.02],
Thickness[0.007]};
pStyleBlue = {RGBColor[0.2, 0, 0.4], PointSize[0.025],
Thickness[0.007]}; (* Good Blue colour *)
Off[General::spell1]
which runs ok. It seems to make mostly definitions of colours etc and is unproblematic. By the way it is good practice to use the correct formatting in your posts- even though that might be a problem of the Community Editor in this case.
The next line of code is
input1 = vt/m;
That works as well. Then comes
N[1/1000000000]
That does not do anything in your program. You might want to clean out these lines to make the program more readable. Then come
soln = Simplify[
NSolve[{ip ==
k*((vdd - vin - vt)*(vdd - vo[t]) - (vdd - vo[t])^2/2),
vin == m*t}, {ip, vin}]];
stage1[t] = ip /. Part[Part[soln, 1] 1];
They run to some extent, but it is difficult to understand what they are meant to do. You use numerical integration, but have not given any values to the parameters. The next line produces the first error:
soln1 = NDSolve[{vo'[t] == stage1[t]/c0, vo[0] == vdd}, {vo[t]}, {t, 0, input1}];
This is because you want to integrate numerically (NDSolve) but have not given any value to input1, which is still only defined as vt/m. At this point it needs a numerical value.If you give a value to it, the program complains about the initial conditions, because vdd is not yet declared. If you give it a value you will find that c0 is not defined. Even if you define c0 it does not work because stage1[t] is not numerical. These kind of errors go all through the notebook. I wonder what happened. You have a long notebook and the first commands do not produce the correct outputs you need for the rest of the notebook. Have you somehow modified a long notebook? Have you not executed the first lines before proceeding to the next lines?
I think that it will be difficult to debug your code a this stage.
You might want to read a book like Wellin's "Programming with Mathematica: An Introduction".
Best wishes,
Marco