Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab Task 3: Find root of given problems by Newton Raphson method according to the instructions given in table. 1) f1(x)=cos(x)1.3x 2) f2(x)=xcos(x)2x2+3x1 3) f(x)=2xcos(2x)(x+1)2

image text in transcribedimage text in transcribed

Lab Task 3: Find root of given problems by Newton Raphson method according to the instructions given in table. 1) f1(x)=cos(x)1.3x 2) f2(x)=xcos(x)2x2+3x1 3) f(x)=2xcos(2x)(x+1)2 import numpy as np from tabulate import tabulate Ni: module Newtan_Raphson '.. newton_raphson(fune, dfune, x0, tol-1e-4, max_iter-1000) Pinds a rat of f(x)=0 by newton_raphson. def newton_raphson(func, dfunc, x0, tal-le-4, max_iter=1000): xr=x0 data- [ ] iter - 0 error - tol +1 for 1 in range(max_iter): itert-1 fx=func(xr) dx - dfune (xr) if abs(dx)

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

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

Discuss all branches of science

Answered: 1 week ago

Question

LO3 Name the seven categories of HR functions.

Answered: 1 week ago