VBA for Point of Intersection between 2 Curves

kurayveth~

New Member
Joined
Apr 3, 2019
Messages
1
Hi, i really need a help here asap by tomorrow. I would appreciate if someone could send me the VBA codes for this question i have as an assignment.

The criteria of the assignment is as below :
For this problem you will be provided with your own set of pump and system curves. You must therefore:

  1. Find suitable polynomial expressions for the system and pump curves
  2. Write a Newton Raphson function that returns the flowrate at the duty point
  3. Write a function for the Newton Raphson to solve – this may include the first derivative as well.

When putting together your code, you should keep the following points in mind:

  1. You will need at least 3 separate functions; the Newton Raphson function itself and the two others that return values of f(x) and f’(x)
  2. That you have a single function call that takes the specified coefficients of the pump and system curve, along with any other values you see fit.

The data is given as below

FlowrateSystem headPump head
m3/hrmm
015.3533.22
1015.2633.10
2015.2733.08
6015.8032.79
9016.7632.46
10017.2232.34
11017.7232.20
17022.3430.95
21027.1029.50
22028.5129.08
23030.0128.58

<colgroup><col width="70" span="3" style="width:53pt"> </colgroup><tbody>
</tbody>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,215,327
Messages
6,124,294
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top