help with this pls

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
correctanswer
Posts: 43759
Joined: Sat Aug 07, 2021 7:38 am

help with this pls

Post by correctanswer »

help with this pls
Help With This Pls 1
Help With This Pls 1 (58.6 KiB) Viewed 75 times
Help With This Pls 2
Help With This Pls 2 (34.76 KiB) Viewed 75 times
Write a function interpolate_function(function, limit, points, int_style) which takes function (a function object), limit (x-axis boundary, float), points (the number of interpolated points, integer) and int style (interpolation style as string), and returns the interpolated points (it is of numpy array type). Note: no visualisation is required. For example: Test print(interpolate function(np.sin, 2 no.pl, 20, "cubic')) print (interpolate_function(np.sin, 2 rp.pi, 15, linear'))
1 import numpy as np 2 from scipy irport interpolate 4-def S 6 7 interpolate_function(function, limit, points, ***doing some interpolation*** x_pts= np.linspace(0, limit, 10) y_pts= function(x_pts) #YOUR CODE GOES HERE
Register for solutions, replies, and use board search function. Answer Happy Forum is an archive of questions covering all technical subjects across the Internet.
Post Reply