c++ programming text book calculus quadratic power Substation factory minimum cost derivative
this original problem comes from:
C++ programming
program design including data structures,
third edition 1575 pages
page 416 problem 9.
ISBN-13: 978-1-4188-3640-5
ISBN-10: 1-4188-3640-0
I have drawn an original depiction of the original
problem, with my original generic solution.
view at 720 full screen and pause to read the text.
uploaded as quick time animation, no audio
I downloaded it to test it. reads ok.
there are 3 images for the solution.
image 3 has the final results , 3 Eqs.
are the solution. A sample with input
and the results of using the Eqs. too.
This same problem is in his newer
editions too.
The solution is my generic solution.
I first solved it with hard numbers
then, duh, solve it generically
for Eq. "plug and play" use-ability .
Now there is no need to ever solve
this problem again. Just integrate
the 3 Eqs. into a c++ program.
The c++ program can test for exceptions
so we won't have too anymore. If using the Eqs.
manually with a calculator we must still
look carefully at our input and the results ,
to check for correctness.
A c++ program can really simplifier the use
of the Eqs. and we have plenty of time to look
at all\any exceptional issues while "off line" so
to speak.
This problem intrigued me, that's why I solved it.
It looks like a semester one calculus problem
derivative only, with a possible minima\maxima test.
What a surprise it ends up being a quadratic, non-linear problem.
Not at the level of a serious differential Equation model , but still fun.
The last screen I have 3 Eqs. circled. Actually to make it easier,
I would work with 4 Eqs.
1. Find X
2. Find Y
3. now use the totalCost Eq. using the values of X and Y
( makes totalCost Eq. easier to write )
4. Find @ angle