1. This program will calculate value of the function for range of x and steps given in your variant. Use vectors x and y to store corresponding values of x and y. Make a C++ function my_func() to calculate value of y for the given x. Use tabulation '\t' to make an output that looks like a table. The output must be similar to following: My name is Alina Latipova. My variant is 0. Function is y = 4*x^4-3*x^2+6*x-7 -2.5 -2 116.5 34 X y -1.5 -1 -1.5 -11 -0.5 0 -9.5-6 0.5 1 -3.5 1 1.5 2 16.5 58 2.5 146.5
1. This program will calculate value of the function for range of x and steps given in your variant. Use vectors x and y to store corresponding values of x and y. Make a C++ function my_func() to calculate value of y for the given x. Use tabulation '\t' to make an output that looks like a table. The output must be similar to following: My name is Alina Latipova. My variant is 0. Function is y = 4*x^4-3*x^2+6*x-7 -2.5 -2 116.5 34 X y -1.5 -1 -1.5 -11 -0.5 0 -9.5-6 0.5 1 -3.5 1 1.5 2 16.5 58 2.5 146.5
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
in c++, excute Function y = 0.05*x3+6sin(3x)+4, Range From -2.5 to 2.5, step 0.5, Specified value of
y = -2, the image show the example of output, comment each line of code.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 2 images
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY