Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I would like to codes to be commented so that I can understand how the answers came from Just make it simple and working 100%

image text in transcribed

I would like to codes to be commented so that I can understand how the answers came from Just make it simple and working 100% correctly please? Thanks

BN001, BN009, BN012, BN121, BN117 Liner Algebra and Calculus - Coding Assignment 1. Purpose The purpose of this assignment is to write an algorithm, in the C programming language, to calculate the value of a given function f at a particular value of its argument x, by using a McLaurin series expansion. 4. Marking Your marks will be calculated out of a total of 100 as follows. a) You will receive 40 marks for correctly understanding and implementing the McLaurin series itself in your program. The bulk of these marks will be earned by having a correct sequence of calculations. b) You will receive 20 marks if your program successfully compiles and works correctly. This will be checked against a range of values for which the correct answer is known. c) You will receive a mark out of 20 for the efficiency of your calculation, that is, the extent to which you minimise the number of arithmetical operations that have to be done. d) You will be marked out of 20 for how well your program terminates with the required level of accuracy. Be aware that you may be asked to explain the structure and sequence of calculations of your program. 2. The Function of the Program Your programme should take in a value x. This will be a real variable, given to the appropriate number of decimal places. The function will return the value f(x), also a real number, to a level of accuracy managed by your program. Your function will either be given or will be the solution to a given differential equation. 3. Method Your programme should calculate the value of f(x) based purely on the McLaurin series, without using any of the functions available in the C library. It will therefore only use the basic arithmetic operations in C: addition, subtraction multiplication and division. You can use loops, logical statements or function calls as you see fit. 5. Your assigned function The function you are asked to implement is given here: f(x) = log (1 + x)

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

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions

Question

gpt 2 9 .

Answered: 1 week ago