Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need the code or what i need to add to the code Ln 52, Col (General) Private Sub Newtons_Click() Dim x, Step, yo, yl, xSlope

image text in transcribed
image text in transcribed
image text in transcribed
need the code or what i need to add to the code
Ln 52, Col (General) Private Sub Newtons_Click() Dim x, Step, yo, yl, xSlope x - Val (InputBox("Input guess of x to evaluate Newtons Method at")) epsilon - 0.0000001 Step 0.00001 diff = epsilon 2 i-0 Do While diff > epsilon i = i + 1 Cells (20, 7) = x Cells (20 + 1, 1) - 1 Cells (20 + 1, 2) - X Cells (20 + 1, 3) = flx (x) Calculate Central derivative of X yo = flx(x - Step) yl - flx (x + Step) xSlope = (yl - yo) / (2 * Step) Cells (20, 6) - xSlope xl = x - f1x (x)/xSlope dirt = Aba (x - xl) x = x1 Loop End Sub Function flx (ByVal x) Define function here Must define function in the following line Elx - XX - 5 Ilx = Log(x) - 2 + 3 End Function 1. Using the Newtons Method Do-While program that was covered in class, write a program to implement the Secant Method for the following function Use the starting points of 1.2 and 2.3 to initialize the program. f(x) = ln(x) x2 + 3 Newtons Method f(x) 8.77914 X 2.12937 0.00000 i 1 2 3 xi 2.000000 2.147654 2.129707 2.129373 2.129372 -1.000000 0.163504 0.002938 0.000001 0.000000 4 5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

Timeline for final evaluation

Answered: 1 week ago

Question

What is Centrifugation?

Answered: 1 week ago

Question

To find integral of ?a 2 - x 2

Answered: 1 week ago

Question

To find integral of e 3x sin4x

Answered: 1 week ago

Question

To find the integral of 3x/(x - 1)(x - 2)(x - 3)

Answered: 1 week ago

Question

What are Fatty acids?

Answered: 1 week ago

Question

LO1 Summarize the organizations strategic planning process.

Answered: 1 week ago