Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this task please use the virtual development lab TASK 3. You will have to write a function and a program. Write your function in
In this task please use the virtual 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. Function: Write an octave function that calculates y = f(x), where f(x) is a mathematical function from the second task (sinh(x) or cosh(x)) You can write your octave function using a recursive formula, or using the original formula for a series. As the input your function has to accept values x and N. As an output it has to return value of y. Program: 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). Please do not use plot() function!!! In this task please use the virtual 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. Function: Write an octave function that calculates y = f(x), where f(x) is a mathematical function from the second task (sinh(x) or cosh(x)) You can write your octave function using a recursive formula, or using the original formula for a series. As the input your function has to accept values x and N. As an output it has to return value of y. Program: 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). Please do not use plot() function
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started