Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Java, write a program that finds the minimum or maximum value for the following function: z = x^6 + 3y^3 - xy - x

Using Java, write a program that finds the minimum or maximum value for the following function:

z = x^6 + 3y^3 - xy - x + 10

In order to find the min/max, use Newton-Raphson's method, with 1 < |x| < 10 and 1 < |y| 9. The initial x and y values can be anything within this range, and subsequent x values are found using

xn+1 = xn  f'(xn) / f''(xn)

and subsequent y values are found using

yn+1 = yn  f'(yn) / f''(yn)

You will know a min or max has been found when the difference between the new solution and previous solution is less than 0.00001 in 1000 iterations. Plug the final x and y into the original equation for z.

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

Genetic Databases

Authors: Martin J. Bishop

1st Edition

0121016250, 978-0121016258

More Books

Students also viewed these Databases questions

Question

Give a definition of consolidated retained earnings.

Answered: 1 week ago

Question

What is group replacement? Explain with an example. (2-3 lines)

Answered: 1 week ago