yliew
Civil/Environmental
- Jan 16, 2002
- 19
Dear All,
I am looking for a way to calculate the area under a non linear graph. I know it can be easily done using spreadsheet but are there any way which I can utilise Visual Basic to do all the calculation in the background and come out with one results.
I have:
~~~~~~~
1. Equation of the non linear graph (Load vs Deflection)
2. I known deflection.
(which means that once I input the deflection I will get the load)
My concept:
~~~~~~~~~~~
For discussion purposes, the non linear equation is:
Load = 0.85*(Displacement)^2
First of all, I determind the size of decrement of displacement which I want, say 0.1mm.
I will use the basic trapeziod and triangle method to find the area.
However, if I used the STEP command, it will come out with a list of results (Load) if I display it in the spreadsheet.
My question is that without it displaying on the spreadsheet, how do I continue with the calculation in Visual Basic and come out with a single answer at the end.
Hope that I didn't confuse all of you.
Regards,
YEN
I am looking for a way to calculate the area under a non linear graph. I know it can be easily done using spreadsheet but are there any way which I can utilise Visual Basic to do all the calculation in the background and come out with one results.
I have:
~~~~~~~
1. Equation of the non linear graph (Load vs Deflection)
2. I known deflection.
(which means that once I input the deflection I will get the load)
My concept:
~~~~~~~~~~~
For discussion purposes, the non linear equation is:
Load = 0.85*(Displacement)^2
First of all, I determind the size of decrement of displacement which I want, say 0.1mm.
I will use the basic trapeziod and triangle method to find the area.
However, if I used the STEP command, it will come out with a list of results (Load) if I display it in the spreadsheet.
My question is that without it displaying on the spreadsheet, how do I continue with the calculation in Visual Basic and come out with a single answer at the end.
Hope that I didn't confuse all of you.
Regards,
YEN