Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For Mathlab Mathlab In this task please use the vritual development lab TASK 3. You will have to write a function and a program. Write

image text in transcribedFor Mathlab Mathlab

In this task please use the vritual development lab "TASK 3". You will have to write a function and a program. Write your function in one file and a program in another. Write an octave function that calculates y =f(x), where f(x) is a mathematical function from the second task. You can write your octave function using the derived recursive formula from task 2, or using the original formula for a series (in that case you will lose 1 point). As the input, your function has to accept values x and N. As an output it has to return value of y. Use your function in the program. Define a vector X that contains evenly distributed values ranging from -2 to 0 (10 elements). Find the vector Y as the value vector of the function f(x) for the values of the vector X (use your octave function). Create a vector of absolute errors between vectro Y and perfect' values of function f(x) in the same data points (vector X values). The 'perfect' f(x) values find using predefined octave function (e.g.sin(), cos() etc. depending on your f(x)). Display the vector of absolute errors on the screen. In this task please use the vritual development lab "TASK 3". You will have to write a function and a program. Write your function in one file and a program in another. Write an octave function that calculates y =f(x), where f(x) is a mathematical function from the second task. You can write your octave function using the derived recursive formula from task 2, or using the original formula for a series (in that case you will lose 1 point). As the input, your function has to accept values x and N. As an output it has to return value of y. Use your function in the program. Define a vector X that contains evenly distributed values ranging from -2 to 0 (10 elements). Find the vector Y as the value vector of the function f(x) for the values of the vector X (use your octave function). Create a vector of absolute errors between vectro Y and perfect' values of function f(x) in the same data points (vector X values). The 'perfect' f(x) values find using predefined octave function (e.g.sin(), cos() etc. depending on your f(x)). Display the vector of absolute errors on the screen

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_2

Step: 3

blur-text-image_3

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

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions

Question

Describe the factors influencing of performance appraisal.

Answered: 1 week ago

Question

What is quality of work life ?

Answered: 1 week ago

Question

What is meant by Career Planning and development ?

Answered: 1 week ago